Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hi all! I'd like to report a bug 🐛
Background:
Expected behavior:
Actual behavior:
I've tried several methods of creating carts/checkouts (Checkout API, Cart API, Cart permalinks attributed to the custom app) and this appears to be the case for all of them. The only way I can get the Shopify Scripts to run is to use cart permalinks that are specifically not attributed to the custom app, but this is much more limited in functionality than the APIs and will not work for our use case.
I would appreciate any guidance on how to proceed and if/when Shopify will consider fixing this bug.
Thanks!
I will also quickly add that custom apps are explicitly listed as supported on this page.
Hey @jeremyf - thanks for getting in touch. You're totally correct that scripts are able to be supported through custom apps that generate checkouts, so this is something I'd be happy to look more in depth into with you on our end.
I can't say for sure what could be causing the scripts not to trigger at the moment, but I can say that after checking with our development team, the issue could potentially be related to some updates that are currently being made to the checkout process as a whole.
You mentioned in your post that you tried creating some checkouts using the Checkout/Cart API and that the scripts didn't seem to trigger there either? Would you be able to share some information on some recent API calls (made within the last 14 days - which is our current log retention limit)? If you can share a call's payload body and some response information, like the Request ID from the response header, that would be great as a staring point and I'd be happy to dig into this further with you.
Let me know if I can clarify anything on our end - you can also reach out through our issue reporting forum if you'd prefer assistance over email. I also just wanted to thank you for your patience here too - I know it's been about a month since you reached out, so hope to hear back from you soon so we can keep looking into this.
Cheers!
Alan | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hey Alan, thanks for the response. Happy to share those details in private. Can you email me? I actually initially went through that form you linked and they told me they couldn't help and that I should post on the forum.
Also an update: we now have a public app as well and Shopify Scripts don't appear to run for that app either.