Asked 4 years ago
19 Nov 2020
Views 1103
jagdish

jagdish posted

How do I redirect in Prestashop one page to another page or website ?

when some one click on My coupons i need to redirect to the home page and if possible to another website in a certain cart rule

so how can redirect one page to another page or another website ?
rajiv

rajiv
answered Nov 30 '-1 00:00

on same website to home page , put following code in controller at initContent() function

  Tools::redirect('/');


for another website use instead


  Tools::redirect('arrayoverflow.com');

Post Answer