[-] BO : #PSFV-874 - Carriers asked with guest checkout and virtual cart
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14701 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
04a7580a98
commit
6120874516
1 file changed
+1
@@ -177,6 +177,7 @@ class OrderOpcControllerCore extends ParentOrderController
|
|||||||
if ($this->context->customer->isLogged(true))
|
if ($this->context->customer->isLogged(true))
|
||||||
{
|
{
|
||||||
$address_delivery = new Address((int)(Tools::getValue('id_address_delivery')));
|
$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'))));
|
$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)
|
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.');
|
$this->errors[] = Tools::displayError('This address is not yours.');
|
||||||
|
|||||||
Reference in new issue
Block a user