Insert step in checkout only if necessary

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
MirkoPinna
Posts: 16
Joined: 04 Sep 2017, 12:35

Insert step in checkout only if necessary

Post by MirkoPinna » 14 Sep 2017, 07:57

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?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Insert step in checkout only if necessary

Post by aimeos » 14 Sep 2017, 17:25

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply