From 24d2e87e8e9880caa352f36085cb14c9e7dae167 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Thu, 29 Nov 2012 18:35:05 +0100 Subject: [PATCH] [-] FO : fixed bug #PSCFV-5563 - address can't be changed when making an order as a guest --- controllers/front/AddressController.php | 9 +-------- controllers/front/OrderController.php | 4 +++- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/controllers/front/AddressController.php b/controllers/front/AddressController.php index 214720329..d3abd9ddb 100644 --- a/controllers/front/AddressController.php +++ b/controllers/front/AddressController.php @@ -117,9 +117,6 @@ class AddressControllerCore extends FrontController */ protected function processSubmitAddress() { - /*if ($this->context->customer->is_guest) - Tools::redirect('index.php?controller=addresses');*/ - $address = new Address(); $this->errors = $address->validateController(); $address->id_customer = (int)$this->context->customer->id; @@ -241,7 +238,7 @@ class AddressControllerCore extends FrontController } else Tools::redirect('index.php?controller=addresses'); - } + } $this->errors[] = Tools::displayError('An error occurred while updating your address.'); } @@ -253,10 +250,6 @@ class AddressControllerCore extends FrontController { parent::initContent(); - /* Secure restriction for guest */ - if ($this->context->customer->is_guest) - Tools::redirect('index.php?controller=addresses'); - $this->assignCountries(); $this->assignVatNumber(); $this->assignAddressFormat(); diff --git a/controllers/front/OrderController.php b/controllers/front/OrderController.php index 96e38c5fb..2cfddfebd 100644 --- a/controllers/front/OrderController.php +++ b/controllers/front/OrderController.php @@ -327,8 +327,10 @@ class OrderControllerCore extends ParentOrderController $this->context->cart->autosetProductAddress(); $this->context->smarty->assign('cart', $this->context->cart); - if ($this->context->customer->is_guest) + /* +if ($this->context->customer->is_guest) Tools::redirect('index.php?controller=order&step=2'); +*/ } /**