*/ class Mage_Checkout_Block_Multishipping_Billing extends Mage_Payment_Block_Form_Container { /** * Prepare children blocks */ protected function _prepareLayout() { if ($headBlock = $this->getLayout()->getBlock('head')) { $headBlock->setTitle( Mage::helper('checkout')->__('Billing Information - %s', $headBlock->getDefaultTitle()) ); } return parent::_prepareLayout(); } /** * Check payment method model * * @param Mage_Payment_Model_Method_Abstract|null $method * @return bool */ protected function _canUseMethod($method) { return $method && $method->canUseForMultishipping() && parent::_canUseMethod($method); } /** * Retrieve code of current payment method * * @return mixed */ public function getSelectedMethodCode() { if ($method = $this->getQuote()->getPayment()->getMethod()) { return $method; } return false; } /** * Retrieve billing address * * @return Mage_Sales_Model_Quote_Address */ public function getAddress() { $address = $this->getData('address'); if (is_null($address)) { $address = Mage::getSingleton('checkout/type_multishipping')->getQuote()->getBillingAddress(); $this->setData('address', $address); } return $address; } /** * Retrieve quote model object * * @return Mage_Sales_Model_Quote */ public function getQuote() { return Mage::getSingleton('checkout/session')->getQuote(); } /** * Getter * * @return float */ public function getQuoteBaseGrandTotal() { return (float)$this->getQuote()->getBaseGrandTotal(); } /** * Retrieve url for select billing address * * @return string */ public function getSelectAddressUrl() { return $this->getUrl('*/multishipping_address/selectBilling'); } /** * Retrieve data post destination url * * @return string */ public function getPostActionUrl() { //return $this->getUrl('*/*/billingPost'); return $this->getUrl('*/*/overview'); } /** * Retrieve back url * * @return string */ public function getBackUrl() { return $this->getUrl('*/*/backtoshipping'); } }