
Public Member Functions | |
| getCheckout () | |
| getBillingAddress () | |
| getPaymentHtml () | |
| getPayment () | |
| getShippingAddresses () | |
| getShippingAddressCount () | |
| getShippingAddressRate ($address) | |
| getShippingPriceInclTax ($address) | |
| getShippingPriceExclTax ($address) | |
| formatPrice ($price) | |
| getShippingAddressItems ($address) | |
| getShippingAddressTotals ($address) | |
| getTotal () | |
| getAddressesEditUrl () | |
| getEditShippingAddressUrl ($address) | |
| getEditBillingAddressUrl ($address) | |
| getEditShippingUrl () | |
| getPostActionUrl () | |
| getEditBillingUrl () | |
| getBackUrl () | |
| getVirtualProductEditUrl () | |
| getVirtualItems () | |
| getQuote () | |
| getBillinAddressTotals () | |
| renderTotals ($totals) | |
Protected Member Functions | |
| _prepareLayout () | |
Definition at line 34 of file Overview.php.
| _prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 46 of file Overview.php.
00047 { 00048 if ($headBlock = $this->getLayout()->getBlock('head')) { 00049 $headBlock->setTitle( 00050 $this->__('Review Order - %s', $headBlock->getDefaultTitle()) 00051 ); 00052 } 00053 return parent::_prepareLayout(); 00054 }
| formatPrice | ( | $ | price | ) |
Definition at line 106 of file Overview.php.
00107 { 00108 return $this->getQuote()->getStore()->formatPrice($price); 00109 }
| getAddressesEditUrl | ( | ) |
Definition at line 137 of file Overview.php.
00138 { 00139 return $this->getUrl('*/*/backtoaddresses'); 00140 }
| getBackUrl | ( | ) |
Definition at line 167 of file Overview.php.
00168 { 00169 return $this->getUrl('*/*/backtobilling'); 00170 }
| getBillinAddressTotals | ( | ) |
Definition at line 211 of file Overview.php.
00212 { 00213 $_address = $this->getQuote()->getBillingAddress(); 00214 return $this->getShippingAddressTotals($_address); 00215 }
| getBillingAddress | ( | ) |
Definition at line 56 of file Overview.php.
00057 { 00058 return $this->getCheckout()->getQuote()->getBillingAddress(); 00059 }
| getCheckout | ( | ) |
Get multishipping checkout model
Definition at line 41 of file Overview.php.
00042 { 00043 return Mage::getSingleton('checkout/type_multishipping'); 00044 }
| getEditBillingAddressUrl | ( | $ | address | ) |
Definition at line 147 of file Overview.php.
00148 { 00149 return $this->getUrl('*/multishipping_address/editBilling', array('id'=>$address->getCustomerAddressId())); 00150 }
| getEditBillingUrl | ( | ) |
Definition at line 162 of file Overview.php.
00163 { 00164 return $this->getUrl('*/*/backtobilling'); 00165 }
| getEditShippingAddressUrl | ( | $ | address | ) |
Definition at line 142 of file Overview.php.
00143 { 00144 return $this->getUrl('*/multishipping_address/editShipping', array('id'=>$address->getCustomerAddressId())); 00145 }
| getEditShippingUrl | ( | ) |
Definition at line 152 of file Overview.php.
00153 { 00154 return $this->getUrl('*/*/backtoshipping'); 00155 }
| getPayment | ( | ) |
Definition at line 66 of file Overview.php.
00067 { 00068 return $this->getCheckout()->getQuote()->getPayment(); 00069 }
| getPaymentHtml | ( | ) |
Definition at line 61 of file Overview.php.
00062 { 00063 return $this->getChildHtml('payment_info'); 00064 }
| getPostActionUrl | ( | ) |
Definition at line 157 of file Overview.php.
00158 { 00159 return $this->getUrl('*/*/overviewPost'); 00160 }
| getQuote | ( | ) |
Retrieve quote
Definition at line 206 of file Overview.php.
00207 { 00208 return $this->getCheckout()->getQuote(); 00209 }
| getShippingAddressCount | ( | ) |
Definition at line 76 of file Overview.php.
00077 { 00078 $count = $this->getData('shipping_address_count'); 00079 if (is_null($count)) { 00080 $count = count($this->getShippingAddresses()); 00081 $this->setData('shipping_address_count', $count); 00082 } 00083 return $count; 00084 }
| getShippingAddresses | ( | ) |
Definition at line 71 of file Overview.php.
00072 { 00073 return $this->getCheckout()->getQuote()->getAllShippingAddresses(); 00074 }
| getShippingAddressItems | ( | $ | address | ) |
| getShippingAddressRate | ( | $ | address | ) |
Definition at line 86 of file Overview.php.
00087 { 00088 if ($rate = $address->getShippingRateByCode($address->getShippingMethod())) { 00089 return $rate; 00090 } 00091 return false; 00092 }
| getShippingAddressTotals | ( | $ | address | ) |
Definition at line 116 of file Overview.php.
00117 { 00118 $totals = $address->getTotals(); 00119 foreach ($totals as $total) { 00120 if ($total->getCode()=='grand_total') { 00121 if ($address->getAddressType() == Mage_Sales_Model_Quote_Address::TYPE_BILLING) { 00122 $total->setTitle($this->__('Total')); 00123 } 00124 else { 00125 $total->setTitle($this->__('Total for this address')); 00126 } 00127 } 00128 } 00129 return $totals; 00130 }
| getShippingPriceExclTax | ( | $ | address | ) |
Definition at line 101 of file Overview.php.
00102 { 00103 return $this->formatPrice($address->getShippingAmount()); 00104 }
| getShippingPriceInclTax | ( | $ | address | ) |
Definition at line 94 of file Overview.php.
00095 { 00096 $exclTax = $address->getShippingAmount(); 00097 $taxAmount = $address->getShippingTaxAmount(); 00098 return $this->formatPrice($exclTax + $taxAmount); 00099 }
| getTotal | ( | ) |
Definition at line 132 of file Overview.php.
00133 { 00134 return $this->getCheckout()->getQuote()->getGrandTotal(); 00135 }
| getVirtualItems | ( | ) |
Retrieve virtual product collection array
Definition at line 187 of file Overview.php.
00188 { 00189 $items = array(); 00190 foreach ($this->getBillingAddress()->getItemsCollection() as $_item) { 00191 if ($_item->isDeleted()) { 00192 continue; 00193 } 00194 if ($_item->getProduct()->getIsVirtual() && !$_item->getParentItemId()) { 00195 $items[] = $_item; 00196 } 00197 } 00198 return $items; 00199 }
| getVirtualProductEditUrl | ( | ) |
Retrieve virtual product edit url
Definition at line 177 of file Overview.php.
00178 { 00179 return $this->getUrl('*/cart'); 00180 }
| renderTotals | ( | $ | totals | ) |
Definition at line 218 of file Overview.php.
00219 { 00220 $colspan = $this->helper('tax')->displayCartBothPrices() ? 5 : 3; 00221 return $this->getChild('totals')->setTotals($totals)->renderTotals(-1, $colspan); 00222 }
1.5.8