'How to redirect to cart
I'm trying to redirect customer on post action to cart by doing this :
Tools::redirect('cart.php');
Everything is working fine as long as user is not logged in, as soon as the user is logged in it only reloads the same page.
Solution 1:[1]
Prestashpo 1.7 (1.7.6.2) redirect to cart
go in modules to ps_shoppingcart
open by text
ps_shoppingcart.js
and find if (resp.modal)
and change (inside)
if (resp.modal) {
window.location.replace(prestashop.urls.pages.order);
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Nik Ruleoff |
