easy-digital-downloads icon indicating copy to clipboard operation
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

Open mihaijoldis opened this issue 3 years ago • 1 comments
trafficstars

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

  1. Go to Dashboard > Users and create a new user account.
  2. Go to Orders > Add new and select create new Customer and use the same email as the newly created user account above.
  3. Once the order is created click on View Customer details
  4. 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.

mihaijoldis avatar Aug 03 '22 15:08 mihaijoldis

I'm experiencing the same issue. Thanks for reporting, I was just about to write this up.

ewsopp avatar Aug 04 '22 14:08 ewsopp

@mihaijoldis This is ready for testing.

cklosowski avatar Aug 19 '22 06:08 cklosowski

@cklosowski Good to go here!

mihaijoldis avatar Aug 19 '22 17:08 mihaijoldis