• Resolved BBQBrian

    (@bbqbrian)


    Once a profile is created and looking at “my account” customers are seeing other peoples orders in “Order History”. Privacy of information is breached since personal information is now showing from another person.

    Running: WC 3.3.3

    The page I need help with: [log in to see the link]

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

    (@icaleb)

    Automattic Happiness Engineer

    Have you done order importing/exporting in the past? Any database migrations?

    This usually happens when data was imported incorrectly, connecting orders to the wrong user IDs.

    Thread Starter BBQBrian

    (@bbqbrian)

    Well, yes… The data was exported from an old install then imported for current site.

    Got a fix?

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    The fix is to not import invalid data ??

    When you imported orders, they referenced a User ID. If the user IDs now are different, the wrong people are linked to the wrong orders.

    Need to go through and fix the data. Order export, examine the customer ID column, and go from there.

    Thread Starter BBQBrian

    (@bbqbrian)

    can you simply reassign the “customer_user” numbers? In whatever methodology I choose?

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    That should work, yep. The customer ID needs to be the same as their ID in WordPress now.

    Just be careful with how you export / re-import as to not mess up any data.

    Thread Starter BBQBrian

    (@bbqbrian)

    Data has been corrected. Tests seem to confirm that users only see their own orders/data.

    Thanks for the guidance.

    Brian

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Customer see another persons order on order history’ is closed to new replies.