Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Cart Transform update price action does not appear to work with selling plans

Cart Transform update price action does not appear to work with selling plans

tontinedev
Shopify Partner
8 0 4

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.

Replies 16 (16)

Liam
Community Manager
3108 344 891

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

tontinedev
Shopify Partner
8 0 4

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.

tontinedev
Shopify Partner
8 0 4

Hi Liam, just checking if there was any update here?

Liam
Community Manager
3108 344 891

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

Jon_Innovonics
Shopify Partner
24 3 9

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


 

tontinedev
Shopify Partner
8 0 4

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?

tontinedev
Shopify Partner
8 0 4

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.

jamessss
Shopify Partner
2 0 0

Hi did you manage to find a workaround? 

jamessss
Shopify Partner
2 0 0

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 

Lm93
Shopify Partner
2 0 0

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!

craig_84labs
Shopify Partner
4 0 2

Same issue here - and a blocker for us.

YehorBobrov1
Shopify Partner
1 0 0

We need this feature as well. its a big blocker for us

adamkitain
Visitor
3 0 1

Also want to bump:

  • It seems that using the selling plan on the input, the selling plan shows up as NULL even when there is a selling plan present.
  • If I didn't want the operation to apply when a selling plan was present, I would just check the input and build my logic to do so.
thegreatone99
Shopify Partner
5 0 6

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

Lm93
Shopify Partner
2 0 0

Bump - been almost 6 months, any time frame on this? Noticed still broken in next RC & unstable

rajkmr
Shopify Partner
26 1 4

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.

Camouflage - Hide sold out variants: https://apps.shopify.com/camouflage