From 792a6ea0b0792b1b66083de0b097586f059bb78c Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Tue, 17 Apr 2012 16:27:39 +0000 Subject: [PATCH] [-] BO : #PSFV-874 - Carriers asked with guest checkout and virtual cart --- controllers/front/OrderOpcController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/front/OrderOpcController.php b/controllers/front/OrderOpcController.php index fbf006363..6c82fc690 100644 --- a/controllers/front/OrderOpcController.php +++ b/controllers/front/OrderOpcController.php @@ -177,6 +177,7 @@ class OrderOpcControllerCore extends ParentOrderController if ($this->context->customer->isLogged(true)) { $address_delivery = new Address((int)(Tools::getValue('id_address_delivery'))); + $this->context->smarty->assign('isVirtualCart', $this->context->cart->isVirtualCart()); $address_invoice = ((int)(Tools::getValue('id_address_delivery')) == (int)(Tools::getValue('id_address_invoice')) ? $address_delivery : new Address((int)(Tools::getValue('id_address_invoice')))); if ($address_delivery->id_customer != $this->context->customer->id || $address_invoice->id_customer != $this->context->customer->id) $this->errors[] = Tools::displayError('This address is not yours.');