Why might a function work in one shop but not in another? #252
Replies: 5 comments 7 replies
-
👋🏻 Hey Sergio. We only make logs from production shops available to function developers when the function fails (times out, writes to STDERR, etc). In those cases, the merchant can submit that error report to the developer and the logs will appear in this view. It's certainly possible for a function to work on one shop but not another, as functions can load shop-bound configuration, most notably through metafields, but also through the contents of the cart. My recommendation would be to force the function to raise an error and have the merchant send you the error report as explained here. Then you'll be able to use the logs to determine what in the input has caused the discount to not apply. |
Beta Was this translation helpful? Give feedback.
-
Yes, they work fine, and if we create from the API any Shopify native discount, it works fine.
Maybe there is a conflict application?
(Planet is our app) There are none that use functions except ours.
All scrips are in draft. All flows are about 'order created’… I don’t know Dunk, this is very strange

… On 5 Jun 2023, at 18:59, dunk ***@***.***> wrote:
Do non-app discounts apply properly? 🤔
—
Reply to this email directly, view it on GitHub <#252 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APXRKXYC6KMUJUKYO65QMADXJYF5RANCNFSM6AAAAAAYXHIDQU>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
How can I access it? with my Shopify dev account returns me an error

… On 5 Jun 2023, at 20:07, dunk ***@***.***> wrote:
The discount folks on our end sent me this: https://vault.shopify.io/page/Discounts-General-Problem-Solving~1636.md#discount-combinations-extensible-discounts-rollout-information
Seems like it is possible that the shop has discount functions disabled- might explain the behaviour you're seeing.
—
Reply to this email directly, view it on GitHub <#252 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APXRKXZ2YRACXPKL27CKLDDXJYN43ANCNFSM6AAAAAAYXHIDQU>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Right now we manage 3 PLUS stores that have the same problem with the functions:
https://canwest-esthetics.myshopify.com/
Creata Beauty
canwest-esthetics.myshopify.com
https://lcitest1.myshopify.com/
http://labelleboucle-2022.myshopify.com
Produits Naturels pour Cheveux Bouclés
labelleboucle-2022.myshopify.com
Is there any way to activate the extensible discounts on that stores?
Thanks Dunk!
… On 5 Jun 2023, at 22:42, dunk ***@***.***> wrote:
Ah sorry I thought that was a public link. In short, it states that the shop might be excluded from extensible discounts. Without knowing what shop we're talking about, I can't go any further.
—
Reply to this email directly, view it on GitHub <#252 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APXRKX2MI6WTL2LTUSYLV6LXJZADPANCNFSM6AAAAAAYXHIDQU>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Dunk, it was that!! I’ve been talking with the support; they enabled it for my managed stores, and now it’s working.
Thank you very much for your help, you were the only one who wanted to help me!!
… On 6 Jun 2023, at 06:58, Sergio Peñas Lazaro ***@***.***> wrote:
Right now we manage 3 PLUS stores that have the same problem with the functions:
https://canwest-esthetics.myshopify.com/
https://lcitest1.myshopify.com/
http://labelleboucle-2022.myshopify.com
Is there any way to activate the extensible discounts on that stores?
Thanks Dunk!
> On 5 Jun 2023, at 22:42, dunk ***@***.***> wrote:
>
>
> Ah sorry I thought that was a public link. In short, it states that the shop might be excluded from extensible discounts. Without knowing what shop we're talking about, I can't go any further.
>
> —
> Reply to this email directly, view it on GitHub <#252 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APXRKX2MI6WTL2LTUSYLV6LXJZADPANCNFSM6AAAAAAYXHIDQU>.
> You are receiving this because you authored the thread.
>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We have developed custom discount functions and tested them on many shops but found that for some Shopify PLUS shops, the functions do not work.
We have ruled out that this is due to theme incompatibilities as we have tried other Shopify default themes on the shop itself and it still doesn't work.
We have also disabled all scripts and other apps in case any of these might conflict.
Even so, we were unable to find the source of the problem. Nor have we seen anything in the documentation that indicates possible incompatibilities apart from checkout.liquid.
As for the type of discount, we have tested all the discounts we have, both automatic and code-based, but none of the discounts from Shopify Functions work.
On the other hand, the logs of the functions do not show the executions of shops other than our development ones. Is this normal?

Beta Was this translation helpful? Give feedback.
All reactions