Jump to content

after adding product to cart Redirect to custom page


taoufiqaitali
 Share

Recommended Posts

Hi

i have a webshop that i want redirect client after adding product to cart to another custom page that contain some specific product that i want client to order

in resume: redirect to custem page instead of redirecting cart to previous page

 

Regards,

Taoufq

Share this post


Link to post
Share on other sites

  • 2 weeks later...

since nobody's reply

i find solution for that

-in cartcontroller.php

change

Tools::redirect('index.php?controller=order&'.(isset($this->id_product) ? 'ipa='.$this->id_product : ''));

with

if(Tools::getIsset('add')){

Tools::redirect('index.php?controller=verres&'.(isset($this->id_product) ? 'ipa='.$this->id_product : ''));

}else{

Tools::redirect('index.php?controller=order&'.(isset($this->id_product) ? 'ipa='.$this->id_product : ''));

}

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More