Example #1
0
 /**
  * Update profile
  *
  * @return void
  */
 protected function doActionUpdateProfile()
 {
     $form = new \XLite\View\Form\Checkout\UpdateProfile();
     $this->requestData = $form->getRequestData();
     $this->updateProfile();
     $this->updateShippingAddress();
     $this->updateBillingAddress();
     $this->setCheckoutAvailable();
     if (empty($this->requestData['shippingAddress']) && empty($this->requestData['billingAddress']) && isset($this->requestData['same_address'])) {
         \XLite\Core\Session::getInstance()->same_address = (bool) $this->requestData['same_address'];
     }
     $this->updateCart();
 }
Example #2
0
 /**
  * Update profile
  *
  * @return void
  */
 protected function doActionUpdateProfile()
 {
     $form = new \XLite\View\Form\Checkout\UpdateProfile();
     $this->requestData = $form->getRequestData();
     $this->updateProfile();
     $this->updateShippingAddress();
     $this->updateBillingAddress();
 }