Hello,
We are working on native mobile applications on Android and iOS for one of our customer that has a shopify store. We use the storefront API to create native screens in our apps, and we use the Cart Object of the storefront API to display a cart screen on our side.
There is a script in Editor Script to apply a specific reduction per batch of products with a specific tag in a Cart Line. The checkbox to use it in both online store and Storefront API is checked, but I’ve seen that the Cart Object should not be useable in script through storefront. So we tried to recreate the same script in both Android and iOS apps (even though we think it’s a bad idea, but no other solution here).
Last friday morning, during few hours, we noticed on both Android and iOS apps that the prices of our cart lines were completely wrong, whereas we had managed to get the right amounts with our code before.
In fact, it’s because the script in Editor Script was clearly working with the Cart Object through the storefront API ! So that was ideal, and we thought Shopify had an update on this. But then, friday afternoon, it goes back to where it were before…
So my questions are :
What did happen last friday ? Do Shopify devs made test on Cart Object with script through Storefront API ? Will we have again those “prices jumps” later without any explanation ? Will Cart Object be useable correctly with script through Storefront API soon or very soon ?
Thank you.