[-] FO : improvements with OPC, Cart Rules and refresh #PSCFV-377 #PSCFV-2196

This commit is contained in:
dMetzger
2012-05-09 14:36:53 +00:00
parent 3c51f4790b
commit 6c52be444c
4 changed files with 11 additions and 4 deletions

View File

@@ -175,7 +175,8 @@ class FrontControllerCore extends Controller
$this->context->customer->logout();
// Login information have changed, so we check if the cart rules still apply
CartRule::autoRemoveFromCart();
CartRule::autoRemoveFromCart($this->context);
CartRule::autoAddToCart($this->context);
Tools::redirect(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null);
}