Prestashop: Url next register

Created on 30 Nov 2018  路  9Comments  路  Source: PrestaShop/PrestaShop

Hello,
I want to direct users to a different url to start page, after they register.

FO No change required

All 9 comments

Hi @nayithu,

With the module ps_customersignin, you can modify the URL after registration.
You need to edit this line https://github.com/PrestaShop/ps_customersignin/blob/master/ps_customersignin.php#L75
Thanks to check & feedback.

but this works for "logout".

I need to change the url after the user registers

@nayithu, so you need to edit this line, https://github.com/PrestaShop/ps_customersignin/blob/master/ps_customersignin.php#L76 by replacing the old URL with the new URL that you want to edit it.
Thanks!

thank you very much for your help.

  1. But what I want is that when you register here (http://techfitds.com/iniciar-sesion?create_account=1)

  2. at the end of your sample registration this page (http://techfitds.com/paciente)

Hi @nayithu,

In the file /Project_Folder/controllers/front/AuthController.php, you need to replace this line
$should_redirect = true;
by this code line:

$this->redirect_after = ($this->authRedirection) ? urlencode($this->authRedirection) : 'index.php?controller=address';
$this->redirect();

Thanks to check & feedback.

Wooooo, I am very happy with your help, I love you.
Thank you thank you thank you

@nayithu, Since it is fixed, I close the issue.
Feel free to open a new one when needed.
Thanks!

I need to work with people like you. Write me to tell you about projects: [email protected]

Hi everyone,
I just see ur topic and i'm very interrested about it, i have the same issus, i want to redirect the user after his registration like Nayithu, http://mywebsite.com/connexion?create-account=1 and after he submit the register form i want to redirect him to http://mywebsite.com/my-account, how can i do that please ?? i just test the line Khouloudbelguith send on the the top but it don't work.
Thank for ur reply.

Was this page helpful?
0 / 5 - 0 ratings