magentodev
magentodev

Reputation: 179

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.

Upvotes: 0

Views: 1687

Answers (2)

Nik Ruleoff
Nik Ruleoff

Reputation: 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); 
}

Upvotes: 0

Alexander Grosul
Alexander Grosul

Reputation: 1814

Try to use this to achieve your point Tools::redirect('cart?action=show'); instead of Tools::redirect('cart.php');

Upvotes: 1

Related Questions