I need to change the redirect after a customer has registered.
In the form I am writing, I intercept the ActionCustomerAccountAdd Hook correctly and perform the operations necessary to my form.
Without this, however, I would like to see my .tpl file and not the default prestashop file.
I tried using Tools :: redirect but got nothing.
Tips on how to do it?
Thanks in advance
My Code :
Quotepublic function hookActionCustomerAccountAdd($param) {
Tools::redirect('views/templates/front/confirm.tpl');}
P.S.
After registering (since I disable the automatic client activation) I return to the registration screen itself (as in the figure), I would like to avoid this and make a riderect to a specific message of mine.