Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Order Admin UI Extensions occasionally cache the last order ID

Order Admin UI Extensions occasionally cache the last order ID

dylanpierce
Shopify Partner
296 14 124

Hello,

Our app makes use of Admin UI extensions to allow merchants to easily look up checks from a given order or customer from the Shopify dashboard: https://getverdict.com/help/docs/shopify/opening-id-checks

 

It's been working well for over a year now.

 

However, recently we've observed that intermittently Shopify will use the _last_ resource ID instead of the current resource ID for the redirect.

 

For example, a merchant was viewing order with an ID of 11111111, but later they view order 2222222, and when they use the Admin UI extension they will be redirected to order 11111111 instead.

 

This is highly confusing to merchants, and they believe we have the bug but I can see Shopify's redirect URL intermittently give the incorrect value.

 

For example, here's a redirect from Shopify's dashboard to our embedded app:

https://real-id.getverdict.com/shopify/checks/from-order-details-page?embedded=1&hmac=sample_hmac&ho...

 

The `id` query parameter is 11111111111111, but in fact the merchant was viewing order 222222222222. The ID parameter passed to the Admin UI extension URL is incorrect or perhaps cached.

 

Please let me know if I can provide any further details, but at this point I'm convinced there's a caching issue happening intermittently within Shopify Admin UI extensions.

Founder of Real ID - Verify your customer's real IDs easily & securely with modern A.I.

Want to see it in action? Check out our demo store.

Reply 1 (1)

Zapfor_Apps
Shopify Partner
90 1 12

We have received a report from a merchant who experience the same issue in the Android Shopify App. I have done some tests and it is happening on iOS Shopify App too. Though it is not always happen, but can be produced with the following steps:

 

  1.  In the Shopify App Order listing screen, tap on an order to go to the order details screen.
  2. Tap on the 3 dots icon on the top right and then tap on an app extension link. The corresponding app will then launch in a browser.
  3. Tap the back button on your device. This bring you back to the order detail screen in the Shopify App.
  4. Swipe left to go to the next order.
  5. Tap on the 3 dots icon on the top right and then tap on an app extension link. The corresponding app will then launch in a browser. However this time the Order ID passed to the app is the ID of the first order in #2.

 

 

CaseBreaker - Bulk and Unit inventory mangement (https://apps.shopify.com/casebreaker)
SimplyCost - Track profit and expenses (https://apps.shopify.com/simplycost)