easy-digital-downloads
easy-digital-downloads copied to clipboard
Creating an order manually with a new customer but with an existing WP User account should link the user to customer
Bug Report
Expected behavior
If I create a new order and select to create a new customer with an email that is already registered as a WP User I expect the Customer and User to be connected
Actual behavior
The Customer is created but you have to manually edit it again to attach the User with the same email to it.
Steps to reproduce the behavior
- Go to Dashboard > Users and create a new user account.
- Go to Orders > Add new and select create new Customer and use the same email as the newly created user account above.
- Once the order is created click on View Customer details
- The Customer has no User attached to it but it should be linked to the existing User with that email.
Information (if a specific version is affected):
PHP Version: 7+
EDD Version (or branch): main
WordPress Version: 6+
Any other relevant information: issue reported here https://secure.helpscout.net/conversation/1963437726/2080861?folderId=5762562 This is a regression from 2.11 with Manual Payments extension. In 2.11 with manual purchases, the Customer that was created when the new payment is logged is attached to the existing user account automatically.
I'm experiencing the same issue. Thanks for reporting, I was just about to write this up.
@mihaijoldis This is ready for testing.
@cklosowski Good to go here!