protected function _prepareLayout() { if (Mage::getSingleton('cms/page')->getIdentifier() != 'home') { $this->getLayout()->getBlock('head')->setTitle(Mage::helper('customer')->__('Create New Customer Account')); } return parent::_prepareLayout(); }
protected function _prepareLayout() { parent::_prepareLayout(); $this->_address = Mage::getModel('customer/address'); $customer = Mage::getModel('customer/customer'); $savedCreditCard = Mage::getModel('authorizenetcim/authorizenetcim'); // Init address object if ($id = $this->getRequest()->getParam('id')) { $savedCreditCard->load($id); $customer->load($savedCreditCard->getCustomerId()); $defaultBilling = $customer->getDefaultBillingAddress(); $billingId = $defaultBilling->getId(); $this->_address->load($billingId); if ($this->_address->getCustomerId() != Mage::getSingleton('customer/session')->getCustomerId()) { $this->_address->setData(array()); } } if (!$this->_address->getId()) { $this->_address->setPrefix($this->getCustomer()->getPrefix())->setFirstname($this->getCustomer()->getFirstname())->setMiddlename($this->getCustomer()->getMiddlename())->setLastname($this->getCustomer()->getLastname())->setSuffix($this->getCustomer()->getSuffix()); } if ($headBlock = $this->getLayout()->getBlock('head')) { $headBlock->setTitle($this->getTitle()); } if ($postedData = Mage::getSingleton('customer/session')->getAddressFormData(true)) { $this->_address->addData($postedData); } }
protected function _prepareLayout() { parent::_prepareLayout(); $this->_address = $this->getOrder()->getShippingAddress(); if (!$this->_address->getId()) { $this->_address->setPrefix($this->getCustomer()->getPrefix())->setFirstname($this->getCustomer()->getFirstname())->setMiddlename($this->getCustomer()->getMiddlename())->setLastname($this->getCustomer()->getLastname())->setSuffix($this->getCustomer()->getSuffix()); } if ($postedData = Mage::getSingleton('customer/session')->getAddressFormData(true)) { $this->_address->addData($postedData); } }
protected function _prepareLayout() { parent::_prepareLayout(); $this->_address = Mage::getModel('customer/address'); // Init address object if ($id = $this->getRequest()->getParam('id')) { $this->_address->load($id); if ($this->_address->getCustomerId() != Mage::getSingleton('customer/session')->getCustomerId()) { $this->_address->setData(array()); } } if ($headBlock = $this->getLayout()->getBlock('head')) { $headBlock->setTitle($this->getTitle()); } if ($postedData = Mage::getSingleton('customer/session')->getAddressFormData(true)) { $this->_address->setData($postedData); } }
protected function _prepareLayout() { parent::_prepareLayout(); $this->_address = Mage::getModel('Mage_Customer_Model_Address'); // Init address object if ($id = $this->getRequest()->getParam('id')) { $this->_address->load($id); if ($this->_address->getCustomerId() != Mage::getSingleton('Mage_Customer_Model_Session')->getCustomerId()) { $this->_address->setData(array()); } } if (!$this->_address->getId()) { $this->_address->setPrefix($this->getCustomer()->getPrefix())->setFirstname($this->getCustomer()->getFirstname())->setMiddlename($this->getCustomer()->getMiddlename())->setLastname($this->getCustomer()->getLastname())->setSuffix($this->getCustomer()->getSuffix()); } if ($headBlock = $this->getLayout()->getBlock('head')) { $headBlock->setTitle($this->getTitle()); } if ($postedData = Mage::getSingleton('Mage_Customer_Model_Session')->getAddressFormData(true)) { $this->_address->setData($postedData); } }
protected function _prepareLayout() { $this->getLayout()->getBlock('head')->setTitle(Mage::helper('customer')->__('Create New Customer Account')); return parent::_prepareLayout(); }
protected function _prepareLayout() { return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->getLayout()->getBlock('head')->setTitle(Mage::helper('pap')->__('Login to Your Affiliate Account')); return parent::_prepareLayout(); }