• Resolved deny21

    (@deny21)


    Hello guys,
    in my website i sell online courses and physical products. So i must have user registration in checkout active to be sure course will be linked to an account, i have social login active too.
    The problem is the following – i lose a lot of orders for two main reasons:

    1- When a user has an account, go to checkout as a guest, insert the email (already existent) in registration module, pay with paypal, complete paypal process, system take him back cause the email already exist, but they think they complete the purchase.

    2- User registered with social login, go to checkout as a guest, try to access with email and password (if him registered with social login, there’s no password), try to recover password (but there’s no password), then leave the purchase.

    Now, i think that the only possible fix is the following: let the user checkout as a guest, and if the email they insert is linked to an existing account, automatically connect the order to the existing account. Is this possible in some way?? Maybe with a plugin?

    Thank you so much guys

Viewing 9 replies - 1 through 9 (of 9 total)
  • @deny21

    I understand you want a possibility to assign a guest order to an existing customer email if they use the same email at checkout.

    I found a guide that could assist here: https://www.zorem.com/link-woocommerce-guest-orders-to-customer-account/

    Here’s also a search result for same.

    I hope this helps!

    Thread Starter deny21

    (@deny21)

    Hello @oaoyadeyi , i found that too, but my fear is that when update woocommerce, snippet will not work anymore, is that possible?

    Thread Starter deny21

    (@deny21)

    And the code in the link you have send to me, let the guest purchase as a guest, without creating an account. I need that if they checkout without an account, create a new one. If the email match with an exist account, connect it

    @deny21

    That’s not an issue.

    You can add the snippet using the code snippets plugin.

    Regardless an update, the snippet should still work.

    @deny21

    For the other bit, you can enable guest account creation at checkout using this guide: https://njengah.com/create-account-at-checkout/

    Thread Starter deny21

    (@deny21)

    the code in the link you have send to me, let the guest purchase as a guest, without creating an account. I need that if they checkout without an account, create a new one. If the email match with an exist account, connect it

    Thread Starter deny21

    (@deny21)

    But i can’t let them purchase as a guest! Cause the course has to be linked to an account. I need a code where – if you don’t have an account – create a new one
    if you have already an account – automatically link the order to existing account

    Hello,

    I need that if they checkout without an account, create a new one

    Please refer to this GitHub thread. Using custom code you can create a new account if it is a guest checkout.

    Note: As mentioned previously, be sure to use a plugin like Code Snippets to add custom PHP code into your site without directly accessing the functions.php file. Here is an article that explains how to use the Code Snippets plugin.

    I hope this helps.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Best.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Credit order to user with existing email’ is closed to new replies.