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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Cart Attributes Removed After Checkout

Cart Attributes Removed After Checkout

sebastiandev
Shopify Partner
72 1 27

Have there been any changes to the Cart API or the Checkout process?

 

I've noticed that cart attributes are being removed. I'm using the code from the documentation:

 

https://shopify.dev/docs/api/ajax/reference/cart#update-cart-attributes

 

I add an attribute, and I can see it on /cart.json, everything works fine.

 

However, after proceeding to checkout and placing the order, the attributes disappear.

 

Could this be a bug, or have there been any changes to the API?

Reply 1 (1)

JayAdra
Shopify Partner
195 15 53

Are you using an accelerated or dynamic checkout method (e.g. Buy Now button)? If so, they don't bring your cart attributes along.

 

This is apparently changing soon, but it's been like this for years.