Okay
  Public Ticket #3891648
Order Filters
Open

Comments

  •  6
    Greg Hill started the conversation

    Hello,

    In the Woo > Orders screen, when we filter on "Filter by B2B / B2C" we have a discrepancy by the number of orders that render and the number that exist. Any suggestions on how to resolve this? It's a a new HPOS site (no compatibility mode) site. We migrated legacy orders via WP All Import and now have a combination of legacy and new.

    Note that the other filters are working as expected (eg date, All Billing Countries, All Shipping Countries, All Payment Methods).

    Thanks!

  •  2,353
    WebWizards replied

    Hi Greg,

    I believe I understand what's causing the discrepancy in the B2B/B2C order filters.

    The filter works based on an order meta key called "b2bking_is_b2b_order" that gets automatically set when new orders are placed. Since you migrated your legacy orders using WP All Import, these older orders likely don't have this meta key set at all.

     

    For new orders created through B2BKing, this works automatically. However, for your imported legacy orders, you'd need to set this meta key manually if you want them to appear in the B2B/B2C filters correctly.

    Basically the key "b2bking_is_b2b_order" can be set with values "yes" or "no" for each order.

     

    Kind regards,
    Stefan

  •  6
    Greg Hill replied

    Thank you! That's a big help. We'll take a look.