edit checkout step for non logged

Open to all! Ask other shopowners for help.
Locked
bitit
Member
Posts: 84
Joined: Thu Jun 24, 2021 4:00 pm
Phoenix Version:
Has thanked: 1 time
Been thanked: 3 times

edit checkout step for non logged

Post by bitit »

hi everyone; i'm looking for improve the conversion of my last project, we spend a lot of money in advertising and we have a very big number of visitor in our website.

we have analyzed the user path and a lot of process become braked in login.php form shopping_cart.php
so i desire, if the customer isn't logged, that going from:
shopping_cart.php
to
checkout_guest.php

where can chose to go in login or beyond in shopping process

how can edit it?

thank you
enrico
Last edited by bitit on Sun Jun 02, 2024 3:14 pm, edited 3 times in total.


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: edit checkout step for non logged

Post by ecartz »

Isn't that how raiwa's add-on already works? If you're using his, then I'd ask him how to configure it the way that you want. There's a support forum at the add-on's page.

If you're using a different one, best to ask that developer.

If you're not using a guest checkout add-on but would like to do so, I would install raiwa's: app.php/addons/free_addon/purchase_without_account

Again, there's a support forum available for the add-on from that page.
bitit
Member
Posts: 84
Joined: Thu Jun 24, 2021 4:00 pm
Phoenix Version:
Has thanked: 1 time
Been thanked: 3 times

Re: edit checkout step for non logged

Post by bitit »

Isn't that how raiwa's add-on already works?

yes, i'm sorry i haven't see the set-up option

Solved
thank you
bitit
Member
Posts: 84
Joined: Thu Jun 24, 2021 4:00 pm
Phoenix Version:
Has thanked: 1 time
Been thanked: 3 times

Re: edit checkout step for non logged

Post by bitit »

No, i'm sorry ' i have tested, but not work properly, because it redirect login page in guest check out and haven't way to login if i have a account

i wont edit core not raiwa plugin

Enrico
bitit
Member
Posts: 84
Joined: Thu Jun 24, 2021 4:00 pm
Phoenix Version:
Has thanked: 1 time
Been thanked: 3 times

Re: edit checkout step for non logged

Post by bitit »

ok, solved on checkout_shipping on line 13 add:

if (!isset($_SESSION['customer_id'])) {header("location:checkout_guest.php"); die;}else {}
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: edit checkout step for non logged

Post by ecartz »

It would be more reliable to use Href::redirect in a new method that you put somewhere and use to replace the Login::require hook on checkout_shipping. Then you aren't editing core or rolling your own redirect.

Regardless, we're now into the realm of modifying the behavior of an add-on. Closing this thread.


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