Paypal Express And User Account?

We are using Paypal Express in cs-cart 4.3.4. In this mode, the customer is sent to Paypal before going to the checkout page. After the customer goes to Paypal and makes the payment, when they return to our checkout page they are getting "Error: the username or email you have chosen already exists. Please try another."

So the problem seems to be when a customer already has an account with our cart and then tries to use Paypal Express with that same email address, they get an error.

Is this a bug or is there a setting to fix this.

We are using Paypal Express in cs-cart 4.3.4. In this mode, the customer is sent to Paypal before going to the checkout page. After the customer goes to Paypal and makes the payment, when they return to our checkout page they are getting "Error: the username or email you have chosen already exists. Please try another."

So the problem seems to be when a customer already has an account with our cart and then tries to use Paypal Express with that same email address, they get an error.

Is this a bug or is there a setting to fix this.

The issue can occur if a customer is placing an order as a guest. In this case the system will check if the provided e-mail address is already used in one of the accounts. The same error will appear if you try to create a new account using the e-mail address that already exists in the system.

Not exactly. In version 4.3.4 guests are not stored in users. But there could be an account in CS-Cart with this e-mail, created before. And if a customer did not log in, use PayPal Express with this e-mail, this error occurs.

The slight modification in paypal_express.functions.php in function 'fn_paypal_user_login' is required.

'And if a customer did not log in, use PayPal Express with this e-mail, this error occurs."

Yes, this is exactly what we are encountering. Is there a fix for this? The current implementation makes Paypal Express useless.

David

Yes, this is exactly what we are encountering. Is there a fix for this? The current implementation makes Paypal Express useless.

Oh, that's ripe for comment! :-)

This is an issue in csc where a user can have an account and if they try to checkout anonymously using the same email, it will fail. The problem is when the customer tries to list their orders. If they login the will see one set related to their user_id and if they don't then (if this were permitted) they would see orders not related to their user_id.

Would seem that an option could be provided that would allow an order to be associated with a user_id if the email used in the order matched the email in the user and the user was not logged in. However, to view the order, they would have to login to their account (possibly using the forgot password option).

I believe that Amazon will also not process the order if you checkout anonymously and use an email that exists in their user database.

How Can I display this popup on click PayPal button if email already exist (PayPal ecommerce I am using)
like this https://prnt.sc/11n2eie