*/ class Mage_Checkout_Block_Multishipping_Address_Select extends Mage_Checkout_Block_Multishipping_Abstract { protected function _prepareLayout() { if ($headBlock = $this->getLayout()->getBlock('head')) { $headBlock->setTitle(Mage::helper('checkout')->__('Change Billing Address') . ' - ' . $headBlock->getDefaultTitle()); } return parent::_prepareLayout(); } protected function _getCheckout() { return Mage::getSingleton('checkout/type_multishipping'); } public function getAddressCollection() { $collection = $this->getData('address_collection'); if (is_null($collection)) { $collection = $this->_getCheckout()->getCustomer()->getAddresses(); $this->setData('address_collection', $collection); } return $collection; } public function isAddressDefaultBilling($address) { return $address->getId() == $this->_getCheckout()->getCustomer()->getDefaultBilling(); } public function isAddressDefaultShipping($address) { return $address->getId() == $this->_getCheckout()->getCustomer()->getDefaultShipping(); } public function getEditAddressUrl($address) { return $this->getUrl('*/*/editAddress', array('id'=>$address->getId())); } public function getSetAddressUrl($address) { return $this->getUrl('*/*/setBilling', array('id'=>$address->getId())); } public function getAddNewUrl() { return $this->getUrl('*/*/newBilling'); } public function getBackUrl() { return $this->getUrl('*/multishipping/billing'); } }