• Resolved advisorexpertwordpress

    (@advisorexpertwordpress)


    Hello,

    When a customer make a new order and open an account at the same time, the previous orders that customer made without opening an account cannot be found in this account.

    I know that we can link the account with previous orders manually, but it is a slow process, so is there a way to do it automatically ?

    When a customer account is created, why not checking if he made some orders already, and add them to this account ?

    Thank you/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    How often is this happening? Seems like a rather niche situation.

    In any case, the orders created in the past are assigned to a guest role and just have an email address on them. The new ones are attached to a user ID.

    You would need to build out a customization to search all guest orders for a matching email address, and assign them to the new customer account. It could be a rather expensive query to do, so would want it to run sparingly.

    Thread Starter advisorexpertwordpress

    (@advisorexpertwordpress)

    Sorry but I do not understand your reply.

    Previous orders of a customer who didn’t open an account are NEVER linked to this account (user ID) if customer finally opens it. Nothing niche here ?

    There is a function in woocommerce REPORTS to link the previous orders to a user ID, but it can be done only manually, and it is so slow that it is boring to use.

    So the question is why, when a customer opens an account, previous orders that used the same Email address, are not automatically linked to the newly created user ID that uses the same Email address as previous orders ?

    Thank you.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    but it can be done only manually, and it is so slow that it is boring to use

    Right, that is what I was saying above. This process is heavy on the database, can take a while and is not a performant query. Thus doing it every time an account is created is a bad idea.

    By niche, I mean how often are people buying multiple orders on a site, then one day decide to make an account, and are upset their past orders aren’t there? Seems pretty odd – maybe the callout to make an account before checking out should be more prominent on your site if it happens a lot.

    Thread Starter advisorexpertwordpress

    (@advisorexpertwordpress)

    Actually many people buy without opening an account, and then later contact me asking why they do not see their orders in their account. They want to check what they bought last time they made and order, to order similar products.
    Maybe you do not know teenagers ??

    Thank you for the reply, I really hope that the database structure of Woocommerce will soon change to become performant.

    So for now I will consider that there is no other solution but link emais to previous orders manually.

    Thanks again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Link customer account to previous orders ? Automatically ?’ is closed to new replies.