Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.x] When customer exists in cart, update customer with provided email. #972

Merged
merged 3 commits into from Jan 14, 2024

Conversation

duncanmcclean
Copy link
Owner

This pull request makes a behaviour change to the way customer information is handled in the {{ sc:cart:addItem }}, {{ sc:cart:update }} and {{ sc:checkout }} forms.

Previously, when you had one of these forms with a customer[email] input & a customer was already assigned to the cart, submitting the form with a different email than the existing customers would create an entirely new customer in Simple Commerce.

<input type="email" name="customer[email]" />

However, this PR changes that behaviour. Instead of a new customer being created, Simple Commerce will instead update the email of the existing customer.

Related: #934

@duncanmcclean duncanmcclean merged commit d0c4a8e into main Jan 14, 2024
5 checks passed
@duncanmcclean duncanmcclean deleted the feature/update-email-of-existing-customer branch January 14, 2024 23:35
Copy link

Released as part of v6.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant