Hi @shameemreza,
Posting here so others with the same question see this. I think I understand what’s going on. The “problem” we are all reporting is less of a problem and more of a confusing interface. After switching to HPOS, the following message now only applies to compatibility mode, but its wording suggests that it is still preventing HPOS from being fully active:
There are 3 orders pending sync. You can switch order data storage only when the posts and orders tables are in sync.
Sync 3 pending orders
If you don’t enable compatibility mode, this message will (eventually) appear regardless, but after switching to HPOS this message should only appear when the “Enable compatibility mode” checkbox is checked. That’s because it’s irrelevant whether your posts and orders tables are in sync if you’ve already synched and activated HPOS. No orders should end up in the posts table after enabling HPOS without compatibility mode, right? So don’t present a scary bold message to users who don’t need to see it. And don’t tell us something is “pending” when in reality it does not require our attention. In addition to conditionally hiding this message, the second sentence should be removed altogether once a user has switched to HPOS:
You can switch order data storage only when the posts and orders tables are in sync.
That sentence is technically incorrect when HPOS is active because it speaks of a future event (switching order data storage) that has already transpired. At this point it technically should say:
If you ever switch back to legacy storage and then decide to enable HPOS again, you will need to resync the posts and orders tables.
But it’d be less confusing to just hide that sentence after HPOS is successfully enabled, then show it again only in the rare event that a user switches from HPOS back to legacy storage. From a programming standpoint, the logic is simple:
- If orders pending sync > 0:
- If Order Data Storage legacy radio button = selected:
- Show link to sync orders and message “You can switch order data storage only when the posts and orders tables are in sync.”
- Else if Compatibility Mode checkbox = checked:
- Show link to sync orders and message “Compatibility mode will be fully enabled when the posts and orders tables are in sync.”
- Else: Hide message and link to sync orders
- Else: Hide message and link to sync orders