What's New
Viewing 13 posts - 1 through 13 (of 13 total)
Viewing 13 posts - 1 through 13 (of 13 total)
You must be logged in to reply to this topic.
Hi,
Please send me your backoffice access in a private reply, I will investigate it for you.
Best regards.
It seems it always go to my-account i have tested the module on newest prestashop and module Customer “Sign in” link mod v0.3.4 and it always send to my-account no matter what i choose. Maybe its some kind of bug?
Hi,
The “Redirect” option is just for the “Quick logo” drop-down. see attached screenshot.
Best regards.
Well it need to be somehow told in the options “this option only work on quick login button” or something like that. In first i was thinking it will work on normal login button 😛
Hello, where can I configure when a customer login will be display as default the my account page, how or where can I change after login to show the homepage index page?
Thanks
If You want to redirect people to index or other pages after login in prestashop 1.7 go to:
classes/form/CustomerLoginForm.php
Find this line:
Hook::exec('actionAuthentication', ['customer' => $this->context->customer]);
Replace to this:
Tools::redirect('index.php');
No problem 🙂
You can add other code like:
// redirection: if cart is not empty : redirection to the cart
if (count($this->context->cart->getProducts(true)) > 0)
Tools::redirect('index.php?controller=order&multi-shipping='.(int)Tools::getValue('multi-shipping')); //I advise not to change address here, because if a customer has any items in the cart Prestashop will redirect him to the checkout page. And if this will be some other page the customer can get upset.
// else : redirection to the account
else
Tools::redirect('index.php?controller=my-account'); //here you can put the page which seems the most obvious to you.
…..
if (!Configuration::get('PS_REGISTRATION_PROCESS_TYPE') && !$this->ajax && !Tools::isSubmit('submitGuestAccount'))
Tools::redirect('index.php?controller=address'); // if registration type is in two steps, we redirect to register address
if ($back = Tools::getValue('back'))
Tools::redirect($back); //this redirect works only if there is the parameter back
Tools::redirect('index.php?controller=my-account');
if (count($this->context->cart->getProducts(true)) > 0)
Tools::redirect('index.php?controller=order&multi-shipping='.(int)Tools::getValue('multi-shipping')); // redirection: if cart is not empty : redirection to the cart
else
Tools::redirect('index.php?controller=my-account'); // else : redirection to the account
You must be logged in to reply to this topic.