Cart Transform Extension: Is it possible to do multiple operations on the same cart line?

Cart Transform Extension: Is it possible to do multiple operations on the same cart line?

aashby13
Shopify Partner
12 4 0

Trying to do multiple operations on the same cart line, an ExpandOperation and an UpdateOperation. No errors but it only seems to do the ExpandOperation no matter what the order they are in the CartOperations array. If I remove the ExpandOperation the UpdateOperation works as expected.

Replies 3 (3)

Liam
Shopify Staff
2807 310 805

Hi Aashby13,

 

Are you still experiencing this issue?

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

aashby13
Shopify Partner
12 4 0

I ended up abandoning using the UpdateOperation and just used the ExpandOperation. It made some other things a little tricky, but it's all good and getting the same results in the end.

Liam
Shopify Staff
2807 310 805

Glad to hear that works!

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