Discussing Shopify Functions development, deployment, and usage in Shopify apps.
We are using a cart transform functions to support a client that requires applying price changes based on line item properties in the cart. This price change takes effect perfectly for standard items with no selling plan allocations, but the instant a product has a selling plan attached the cart transform stops applying but there is no error reported in the admin console.
I'm wondering if this is expected behavior, and if so whether there is any documentation about this quirk or if the team is looking at changing this behavior. A big part of the reason we are using the cart transform API for this is that the product discount function API does not currently allow us to apply different discounts to each line item if they share a variant id (e.g. one item has a selling plan attached and one does not) so we are still needing to use shopify scripts for this. Would love to fully migrate but this is a blocker.
Hi Tontinedev,
I've reached out to our internal dev team to see if this is a known limitation on our side - will update asap.
Liam | Developer Advocate @ 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
Awesome, thanks Liam. If it is known/intentional it would be great to have that added to the limitations section in the developer docs, as I could not find any mention of it anywhere else.
Hi Liam, just checking if there was any update here?
Hi again - our team has identified that there is an unexpected override happening here and are working on a fix.
Liam | Developer Advocate @ 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
Out of curiosity, is this also affecting the selling plan data from being returned on the cart transform function?
I get null when querying for the selling plan data of a product using the cart transform function api, but when I try the same product with the cart validation function api I am able to view the expected selling plan data.
⭐️ If I was helpful, please Like or Accept the solution
✅ Contact me directly via email: Jonathan@Innovonics.com
Thanks for this update Liam. Does the team have an estimated ETA for this fix? Will it have to wait for the next API release in April or will the fixes come to the current version as well?
Just wanted to check in on this again and see if there was an ETA. We're in planning for the next quarter and would love to know if we need to plan this in.
Hi did you manage to find a workaround?
Hi also wanted to see if there is an update and ETA on this one. We are working with a merchant and just hit this issue as well, would love to give them an answer on when we might be able to address this for them.
Thanks
I get the same issue, no sellingplan data returned. This is also a pretty big blocker for us! Would love to get a rough ETA on a fix for this? Thanks!
Same issue here - and a blocker for us.
We need this feature as well. its a big blocker for us
Also want to bump:
Also anxiously awaiting cart function / selling plan compatibility ✋
FYI a similar discussion is going on over in GitHub: https://github.com/Shopify/function-examples/discussions/220
Bump - been almost 6 months, any time frame on this? Noticed still broken in next RC & unstable
Bump - We too need a way to show items as a bundle.
We don't want to change the pricing of the products though. The discount is applied by discount functions.