[-] FO: Fix #PSCFV-4370

This commit is contained in:
rGaillard
2012-09-25 14:42:30 +00:00
parent 39a51e388e
commit 4e91bb2188
2 changed files with 9 additions and 5 deletions

View File

@@ -188,7 +188,10 @@ class FrontControllerCore extends Controller
{
$cart = new Cart($this->context->cookie->id_cart);
if ($cart->OrderExists())
{
unset($this->context->cookie->id_cart, $cart, $this->context->cookie->checkedTOS);
$this->context->cookie->check_cgv = false;
}
/* Delete product of cart, if user can't make an order from his country */
elseif (intval(Configuration::get('PS_GEOLOCATION_ENABLED')) &&
!in_array(strtoupper($this->context->cookie->iso_code_country), explode(';', Configuration::get('PS_ALLOWED_COUNTRIES'))) &&