Retrieving checkout / cart buttons

Shopify Partner
22 3 3
Wondering if there is a way to easily retrieve the element attributes of a themes checkout button that are on the ‘your-domain.com/cart’ page and in the Ajax cart (side cart)?
0 Likes
Highlighted
Trailblazer
209 1 101

 

 

<input id="attr-myattribute" type="hidden" name="attributes[myattribute]" value="my attribute value" />

You can look at cart attributes and store values in there, which will get passed to cart/checkout/order objects and they're also shown on order page in the admin and you can edit them.

More info here
https://shopify.dev/docs/themes/liquid/reference/objects/cart 

0 Likes