Make login require for checkout the order
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!
Make login require for checkout the order
I want a user to login before checkout the order.
Current scenario: User can add product to cart and do checkout without login
Required scenario: User can add product to cart. User has to login when he want to do checkout. When user click on it should redirect user to login page.
How can it be done? Can you please guide me?
Current scenario: User can add product to cart and do checkout without login
Required scenario: User can add product to cart. User has to login when he want to do checkout. When user click on it should redirect user to login page.
How can it be done? Can you please guide me?
-
- Posts: 6
- Joined: 17 May 2019, 09:02
Re: Make login require for checkout the order
Not exactly what you ask for, but what I did was to make the user login even before shopping. It's pretty easy; just edit config/shop.php and configure the "routes" like so:
Code: Select all
'routes' => [
'default' => ['prefix' => 'shop', 'middleware' => ['web','auth']],
],
Re: Make login require for checkout the order
Thanks. I have overridden routes and applied "auth" middleware to checkout controller and it works