Page 1 of 1

edit checkout step for non logged

Posted: Sun Jun 02, 2024 2:36 pm
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

Re: edit checkout step for non logged

Posted: Sun Jun 02, 2024 2:45 pm
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.

Re: edit checkout step for non logged

Posted: Sun Jun 02, 2024 3:08 pm
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

Re: edit checkout step for non logged

Posted: Sun Jun 02, 2024 3:17 pm
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

Re: edit checkout step for non logged

Posted: Sun Jun 02, 2024 3:59 pm
by bitit
ok, solved on checkout_shipping on line 13 add:

if (!isset($_SESSION['customer_id'])) {header("location:checkout_guest.php"); die;}else {}

Re: edit checkout step for non logged

Posted: Sun Jun 02, 2024 5:13 pm
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.