Account creation on checkout

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!
MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Account creation on checkout

Post by MikaelNazarenko » 29 Mar 2022, 06:04

Hi Community !

Maybe somebody faced with need to implement customer account autocreation with sending link to set password when user checkout process ?

Maybe somebody did some steps for it ?

Are there in aimeos some built in functions for that ?

SORRY! I noticed there is checkbox in checkbox in checkout to create account. But seems doesn't work.. I don't see new user in DB in users and mshop_customer tables.. Or should I execute some cli command for that ?

Best regards, thanks !

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

Re: Account creation on checkout

Post by aimeos » 29 Mar 2022, 06:31

That's already built into Aimeos since the beginning.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: Account creation on checkout

Post by MikaelNazarenko » 29 Mar 2022, 10:00

Yes, sorry for this misunderstanding.

But I notice seems error in aimeos code:

https://github.com/aimeos/ai-controller ... rd.php#L96

Code: Select all

$this->item = $item->setPassword( $password );
I guess should be:

Code: Select all

$this->item = $this->item->setPassword( $password );

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

Re: Account creation on checkout

Post by aimeos » 29 Mar 2022, 10:05

You are right, this doesn't set the password correctly and it should be:

Code: Select all

$this->item->setPassword( $password );
Can you create a PR to fix the problem?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply