[bug 🐛] Shopify Scripts not being run for checkouts created by a custom app

[bug 🐛] Shopify Scripts not being run for checkouts created by a custom app

jeremyf
Shopify Partner
5 0 2

Hi all! I'd like to report a bug 🐛

 

Background:

  • We're working with a Shopify Plus merchant who has custom Shopify Scripts for modifying shipping prices, applying discounts, etc.
  • These scripts are set to run for both their store and all sales channels.
  • We have a custom app with Storefront API access installed for their shop.

 

Expected behavior:

  • These scripts are run for and applied to checkouts created by our custom app.

Actual behavior:

  • None of the scripts appear to be running and affecting checkouts created via the Storefront Checkout API by the custom app.

 

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!

Replies 3 (3)

jeremyf
Shopify Partner
5 0 2

I will also quickly add that custom apps are explicitly listed as supported on this page.

Alan
Shopify Staff
129 15 25

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

jeremyf
Shopify Partner
5 0 2

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.