Add a register/login page before checkout process starts

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!
ajrmzcs
Posts: 20
Joined: 09 Jul 2018, 21:59

Add a register/login page before checkout process starts

Post by ajrmzcs » 08 Sep 2018, 12:18

Laravel: 5.6
Aimeos: 2018.04
PHP: 7.x
Linux

Hi, I was able to add custom registration/login page after the basket and before the checkout following your suggestion on: laravel-package-f18/insert-step-in-chec ... t1103.html and its working fine.

At the end of my registration I redirect my customer to the /checkout url and we get to the billing/shipping address cofnirmation on checkout process which is perfect. However, the action parameter on that forms has the initial route I inserted on my custom step instead of /checkout?step=delivery. And if I name my custom route /checkout I always redirected to my custom page instead of going to the regular checkout process.

Can you tell how I can have the regular checkout url on next checkout forms?

Thank you.

Regards,
Attachments
Screenshot from 2018-09-08 07-11-45.png
Screenshot from 2018-09-08 07-11-45.png (88.52 KiB) Viewed 1770 times

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

Re: Add a register/login page before checkout process starts

Post by aimeos » 10 Sep 2018, 21:00

You have to overwrite the basket-standard.php template and use another URL target (https://github.com/aimeos/ai-client-htm ... rd.php#L16):

Code: Select all

$checkoutTarget = $this->config( 'client/html/checkout/standard/url/targetLogin', 'shop_login' );
In your login page, redirect to the value of

Code: Select all

$this->config( 'client/html/checkout/standard/url/target' );
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply