// BugFix : With Guest Checkout, an alert is displaying each time we increase/decrease the quantity of a product

This commit is contained in:
mDeflotte committed 2011-11-23 13:59:14 +00:00
1 parent cb67ab3a3f
commit 9cd6a6d714
2 files changed
+2 -10

No files matched your search

+2 -2
View File
@@ -449,9 +449,9 @@ class OrderOpcControllerCore extends ParentOrderController
$groups = $this->context->customer->getGroups();
else
$groups = array(1);
if (!Address::isCountryActiveById((int)($this->context->cart->id_address_delivery)))
if (!Address::isCountryActiveById((int)($this->context->cart->id_address_delivery)) && $this->context->cart->id_address_delivery != 0)
$this->errors[] = Tools::displayError('This address is not in a valid area.');
elseif (!Validate::isLoadedObject($address_delivery) OR $address_delivery->deleted)
elseif ((!Validate::isLoadedObject($address_delivery) OR $address_delivery->deleted) && $this->context->cart->id_address_delivery != 0)
$this->errors[] = Tools::displayError('This address is invalid.');
else
{