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).
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.
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!
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
Thank you! That's a big help. We'll take a look.