Insert step in checkout only if necessary
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 16
- Joined: 04 Sep 2017, 12:35
Insert step in checkout only if necessary
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?
Is is possible? how can i achieve it?
Re: Insert step in checkout only if necessary
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.
- 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, give us a star
If you like Aimeos, give us a star