Jump to content

Update Customer E-Mail (Instant Checkout)


Recommended Posts

I'm writing a module for a new payment provider in The Netherlands.

 

They require me to let my customers change their e-mail, something that appears to be impossible when you choose the "Instant checkout" to order your cart...

 

Is there any option in PrestaShop that allows the change of the e-mail address of the customer by the customer?

Or is there any function available that I can use so that I can built it into my module? I know how to read the customes e-mail of course, but can I update it in case it was wrong?

 

Edit: Nevermind

 

 

$customer->email = [email protected];
$customer->update(true);
Edited by SparkyRih (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...