Checkout Redirect - updating to 10908

Open to all! Ask other shopowners for help.
Post Reply
Scratchilito
Member
Posts: 37
Joined: Wed Jan 26, 2022 2:15 pm
Phoenix Version: v1.1.0.6
Has thanked: 6 times

Checkout Redirect - updating to 10908

Post 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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Checkout Redirect - updating to 10908

Post 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
Scratchilito
Member
Posts: 37
Joined: Wed Jan 26, 2022 2:15 pm
Phoenix Version: v1.1.0.6
Has thanked: 6 times

Re: Checkout Redirect - updating to 10908

Post by Scratchilito »

It's a parameter that I'm discovering. Many thanks for this information.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply