Reputation: 31
Redirect to Login page after clicking to Add to Cart button
When client clicks on Add to Cart, he or she will be automatically redirect to the Login Page.
for Page redirection i got this Tools::redirect('index.php?controller=authentication?back=my-account');
But i'm searching to past this code in some controller please help me out or is there any solutions is there in prestashop
Upvotes: 1
Views: 5867
Reputation: 169
go to admin panel and follow this steps:
Upvotes: 1
Reputation: 711
Use the module from this answer : https://stackoverflow.com/a/14497847/1903705
And replace the content of hookActionCartSave by your redirect.
You should add some other checks (already logged in, etc.).
Upvotes: 0