コード例 #1
0
ファイル: Register.php プロジェクト: shebin512/Magento_Zoff
 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();
 }
コード例 #2
0
ファイル: Ccnew.php プロジェクト: AleksNesh/pandora
 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);
     }
 }
コード例 #3
0
ファイル: Edit.php プロジェクト: igorvasiliev4/magento_code
 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);
     }
 }
コード例 #4
0
ファイル: Edit.php プロジェクト: jpbender/mage_virtual
 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);
     }
 }
コード例 #5
0
ファイル: Edit.php プロジェクト: relue/magento2
 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);
     }
 }
コード例 #6
0
ファイル: Register.php プロジェクト: arslbbt/mangentovies
 protected function _prepareLayout()
 {
     $this->getLayout()->getBlock('head')->setTitle(Mage::helper('customer')->__('Create New Customer Account'));
     return parent::_prepareLayout();
 }
コード例 #7
0
ファイル: Register.php プロジェクト: patelrahil43/dellocal
 protected function _prepareLayout()
 {
     return parent::_prepareLayout();
 }
コード例 #8
0
ファイル: Login.php プロジェクト: AmineCherrai/rostanvo
 protected function _prepareLayout()
 {
     $this->getLayout()->getBlock('head')->setTitle(Mage::helper('pap')->__('Login to Your Affiliate Account'));
     return parent::_prepareLayout();
 }