Page 1 of 1

Insert step in checkout only if necessary

Posted: 14 Sep 2017, 07:57
by MirkoPinna
Hi i want to login the user before payment and redirect it to a different page if necessary, all inside the checkout process.
Is is possible? how can i achieve it?

Re: Insert step in checkout only if necessary

Posted: 14 Sep 2017, 17:25
by aimeos
The checkout process is one one page so you can't get in between the checkout steps but you can do that between the basket and the checkout page. For that, create a named route to your login page and configure that name for the checkout target in your ./config/shop.php:
- https://aimeos.org/docs/Configuration/C ... url/target
- https://github.com/aimeos/aimeos-larave ... t.php#L193

If the customers have logged in or are already logged in, redirect them to the "aimeos_shop_checkout" route so they can continue with the checkout process. If you don't want to allow guest checkouts at all, you can protect the "aimeos_shop_checkout" route with the "auth" middleware.