Public Member Functions | |
getSelectedMethodCode () | |
getAddress () | |
getQuote () | |
getSelectAddressUrl () | |
getPostActionUrl () | |
getBackUrl () | |
Protected Member Functions | |
_prepareLayout () | |
_canUseMethod ($method) |
Definition at line 34 of file Billing.php.
_canUseMethod | ( | $ | method | ) | [protected] |
Check and prepare payment method model
Reimplemented from Mage_Payment_Block_Form_Container.
Definition at line 55 of file Billing.php.
00056 { 00057 if (!$method->canUseForMultishipping()) { 00058 return false; 00059 } 00060 return parent::_canUseMethod($method); 00061 }
_prepareLayout | ( | ) | [protected] |
Prepare children blocks
Reimplemented from Mage_Payment_Block_Form_Container.
Definition at line 39 of file Billing.php.
00040 { 00041 if ($headBlock = $this->getLayout()->getBlock('head')) { 00042 $headBlock->setTitle( 00043 Mage::helper('checkout')->__('Billing Information - %s', $headBlock->getDefaultTitle()) 00044 ); 00045 } 00046 00047 return parent::_prepareLayout(); 00048 }
getAddress | ( | ) |
Retrieve billing address
Definition at line 81 of file Billing.php.
00082 { 00083 $address = $this->getData('address'); 00084 if (is_null($address)) { 00085 $address = Mage::getSingleton('checkout/type_multishipping')->getQuote()->getBillingAddress(); 00086 $this->setData('address', $address); 00087 } 00088 return $address; 00089 }
getBackUrl | ( | ) |
Retrieve back url
Definition at line 127 of file Billing.php.
00128 { 00129 return $this->getUrl('*/*/backtoshipping'); 00130 }
getPostActionUrl | ( | ) |
Retrieve data post destination url
Definition at line 116 of file Billing.php.
00117 { 00118 //return $this->getUrl('*/*/billingPost'); 00119 return $this->getUrl('*/*/overview'); 00120 }
getQuote | ( | ) |
Retrieve quote model object
Definition at line 96 of file Billing.php.
00097 { 00098 return Mage::getSingleton('checkout/session')->getQuote(); 00099 }
getSelectAddressUrl | ( | ) |
Retrieve url for select billing address
Definition at line 106 of file Billing.php.
00107 { 00108 return $this->getUrl('*/multishipping_address/selectBilling'); 00109 }
getSelectedMethodCode | ( | ) |
Retrieve code of current payment method
Reimplemented from Mage_Payment_Block_Form_Container.
Definition at line 68 of file Billing.php.
00069 { 00070 if ($method = $this->getQuote()->getPayment()->getMethod()) { 00071 return $method; 00072 } 00073 return false; 00074 }