Open JelleGe opened 1 year ago
Magento changed how magento/module-customer/Model/AccountManagement.php handles the isEmailAvailable function. It now checks the GUEST_CHECKOUT_LOGIN_OPTION_SYS_CONFIG config and if it is set to false isEmailAvailable always returns true.
In magepal/magento2-guest-to-customer/Controller/Adminhtml/Customer/Index.php execute() if isEmailAvailable() evaluates to true it attempts to create a new customer, this is what throws the error. The customer does exist and the plugin errors out of customer creation and never reaches the merge guest with customer code.
@JeremyAtMethodMarketing thanks for spotting it! I don't like enabling this "guest checkout login" option BUT it does explain why this stopped working.
@JeremyAtMethodMarketing @iphigenie ... can you test these changes and let me know
Magento version #: 2.4.6-p2
Edition (EE, CE, OS, etc): CE
Expected behavior: Convert order to customer
Actual behavior: Error message; A customer with the same email address already exists in an associated website.
It's not possible anymore to convert a guest order to a customer, when there is already an existing customer with the same email address. Then we fetch the error: A customer with the same email address already exists in an associated website.