Cozuni Bundles Pro: fix for requirement 2.1.1 (Analytics did not show a new bundle order)
Cause
- Analytics kept order statistics in a 15-minute cache, so an order placed right before opening the page was not counted yet.
- The Refresh button did not bypass that cache, so there was no way to see the new order.
- Lines discounted by our bundle discount without the widget's line property were not recognised, because the discount is named after the bundle bar ("Duo", "Buy 4", "Free gift").
Fix (live now)
- Every time Analytics opens it checks the shop's newest order and reloads the statistics when there is a new, edited or cancelled order.
- Refresh always reloads the orders from Shopify.
- Bundle discount lines are recognised by the deal's discount, bar, gift and upsell names.
- Clear loading, empty ("No orders in this period yet" + Refresh) and error ("Try again") states.
Screen recording (development store)
Analytics shows 1 order. Then we add a Duo bundle to the cart, check out and open Analytics again without pressing Refresh. The new order is counted right away: 2 orders, bundle revenue $2,106.88.
Download the MP4