Customer's email change on his profile

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!
User avatar
Wall0fDeath
Posts: 28
Joined: 30 Aug 2022, 13:56

Customer's email change on his profile

Post by Wall0fDeath » 28 Nov 2023, 13:34

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! :))

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

Re: Customer's email change on his profile

Post by aimeos » 01 Dec 2023, 12:11

The email address may be changed if you use:

Code: Select all

$cntl = \Aimeos\Controller\Frontend::create( $context, 'customer' );
$cntl->get()->getPaymentAddress()->setEmail( '...' );
$cntl->store();
But not tested that before ...
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Wall0fDeath
Posts: 28
Joined: 30 Aug 2022, 13:56

Re: Customer's email change on his profile

Post by Wall0fDeath » 04 Dec 2023, 14:17

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. ^^

Post Reply