Discussing Shopify Functions development, deployment, and usage in Shopify apps.
Hi there,
I'm reaching out because I've come across an issue with my app that may affect others using the Discounts Functions API with POS Pro. I'd love to know if anyone else has experienced this, and if there might be a bigger problem that needs addressing.
When a custom sale is added to a POS cart, it seems to automatically remove any automatic discounts calculated through the Shopify Functions API, unlike Shopify's built-in automatic discounts which remain applied.
Steps to Reproduce:
This behavior points to a possible integration issue between Shopify POS and Shopify Functions.
What I've Done:
Is anyone else facing this issue?
Thank you for your time and help,
Tobe
Same Problem here.
Update: The same issue applies when a custom item is added to a draft order, and the user tries to use "Apply all eligible automatic discounts."
If a "CustomProduct" is in the cart, the discounts calculated by Shopify Functions are completely ignored.
I've attached a screenshot of the output from a function run on a draft order where a "CustomProduct" was in the cart. As you can see, the output is well-formed and contains discounts, but none were applied to the order:
We're also having this problem. 90% of our orders are custom items so this problem makes for a fair amount of unnecessary work. Hoping Shopify can find a solution!
Did this ever get resolved or is there a known workaround? We're facing the same issue.
I am running into this problem. I think B2B wholesale club used a POS button to apply discounts to custom items. I will try that the next few days and let you know.
The issue also occurs without a custom product. As soon as you save an order as draft and reactivate it, the discounts will not be calculated.
This is a huge pain, because you have to “rebuild” the entire order from scratch.
Please fix