[-] FO: Fix #PSCFV-4370

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17536 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-09-25 14:42:30 +00:00
parent 9df166fce6
commit e637297bae
2 changed files with 9 additions and 5 deletions
+3
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'))) &&