Esempio n. 1
0
 /**
  * Fill block values with customer session information
  *
  * @return void
  */
 protected function _fillInWithSession()
 {
     $customer = $this->_order->getCustomer();
     $address = $this->_order->getAddress();
     $this->addData(array_filter(array('customer_email' => $customer->getEmail(), 'customer_region' => $address->getRegion(), 'customer_city' => $address->getCity(), 'customer_building' => $address->getStreet(1), 'customer_room' => $address->getStreet(2), 'customer_phone' => $address->getTelephone(), 'customer_zip' => $address->getPostcode(), 'customer_note' => $customer->getNote())));
 }
Esempio n. 2
0
 /**
  * Prepare address information from request
  *
  * @param FI_Checkout_Model_Order $order
  * @return array
  */
 public function extractAddressFrom(Sitemaster_Checkout_Model_Order $order)
 {
     $address = $order->assembleAddress();
     if (!$order->getCustomer()->getIsLoggedIn()) {
         $password = $this->getPasswordFor($order->getCustomer());
         $address['customer_password'] = $password;
         $address['confirm_password'] = $password;
     }
     return $address;
 }