Checkout Redirect - updating to 10908

Ask the community for help with CE Phoenix Cart.
Post Reply
Scratchilito
Posts: 30
Joined: Wed Jan 26, 2022 2:15 pm
Has thanked: 2 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.
heatherbell
VIP Member
VIP Member
Posts: 2283
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 31 times
Been thanked: 216 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
Posts: 30
Joined: Wed Jan 26, 2022 2:15 pm
Has thanked: 2 times

Re: Checkout Redirect - updating to 10908

Post by Scratchilito »

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