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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

[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 0 (0)