/** * 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(); }
/** * Update profile * * @return void */ protected function doActionUpdateProfile() { $form = new \XLite\View\Form\Checkout\UpdateProfile(); $this->requestData = $form->getRequestData(); $this->updateProfile(); $this->updateShippingAddress(); $this->updateBillingAddress(); }