Customer's email change on his profile
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!
- Wall0fDeath
- Posts: 28
- Joined: 30 Aug 2022, 13:56
Customer's email change on his profile
Php : 8.2
Os: Debian GNU/Linux 11 (Bullseye)
Aimeos 22.10.12
Laravel 9.52.16
Dear Aimeos Team,
I have a task to make the customer's email and password changeable.
As I say the remember your password part is working, so it can be used for the pw, but what about the email address?
On the admin page I can change it, but as a user on the profile page I can't. I could set birthday etc. Those were saved, but i couldn't modify the base email.
Is there something similar in the newer versions, or any other way, what I don't know yet for the customer to change his/her own email or any plan to make it in the future?
Have a nice day!
)
Os: Debian GNU/Linux 11 (Bullseye)
Aimeos 22.10.12
Laravel 9.52.16
Dear Aimeos Team,
I have a task to make the customer's email and password changeable.
As I say the remember your password part is working, so it can be used for the pw, but what about the email address?
On the admin page I can change it, but as a user on the profile page I can't. I could set birthday etc. Those were saved, but i couldn't modify the base email.
Is there something similar in the newer versions, or any other way, what I don't know yet for the customer to change his/her own email or any plan to make it in the future?
Have a nice day!

Re: Customer's email change on his profile
The email address may be changed if you use:
But not tested that before ...
Code: Select all
$cntl = \Aimeos\Controller\Frontend::create( $context, 'customer' );
$cntl->get()->getPaymentAddress()->setEmail( '...' );
$cntl->store();
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

- Wall0fDeath
- Posts: 28
- Joined: 30 Aug 2022, 13:56
Re: Customer's email change on his profile
Thank you!
But I should make it on the profile page and not on another page.
I have an extension for product return, what should extend customer anyway. So I changed this:
$item->getCode() => ($billingAddress->getEmail() ? : $item->getCode())
This did the trick for me. ^^
But I should make it on the profile page and not on another page.
I have an extension for product return, what should extend customer anyway. So I changed this:
$item->getCode() => ($billingAddress->getEmail() ? : $item->getCode())
This did the trick for me. ^^