Page 1 of 1

Checkout Redirect - updating to 10908

Posted: Tue Nov 26, 2024 9:18 am
by Scratchilito
Hello,

When I try to update from 10907 to 10908 locally, I see that every time I validate the order, the create_account. php page is systematically displayed instead of login.php.
At first I thought it was the PWA (purchase without account) addon in cause, but no, appologies about that.
I did a lot of testing and came up with this solution, which is certainly not ‘official’, when I saw this command in the update.sql file:

Code: Select all

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Checkout Redirect', 'CHECKOUT_REDIRECT', 'create_account.php', 'At checkout, redirect a new (not logged in) customer to create_account or login page?', 1, 23, 'Config::select_one([\'create_account.php\', \'login.php\'], ', NOW());
By searching in my database with ‘CHECKOUT_REDIRECT’ I've found the line with the title ‘Checkout Redirect’ and I've changed its 'configuration_value' to ‘login.php’ instead of ‘create_account.php’.

For the time being, I'm staying local while waiting for your assessment and, above all, a correction to my amateurism.
Thank you for your help.

Re: Checkout Redirect - updating to 10908

Posted: Tue Nov 26, 2024 9:32 am
by heatherbell
Scratchilito wrote: Tue Nov 26, 2024 9:18 amthe create_account. php page is systematically displayed instead of login.php.
Set as required at Admin > My Store > Checkout Redirect

Re: Checkout Redirect - updating to 10908

Posted: Tue Nov 26, 2024 9:37 am
by Scratchilito
It's a parameter that I'm discovering. Many thanks for this information.