Cart Attributes Removed After Checkout

Cart Attributes Removed After Checkout

sebastiandev
Shopify Partner
69 1 22

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
146 14 38

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.