I’m using shopify plus store.
I want to access cart attributes in checkout script editor.
Is there any way to get cart attributes in checkout script editor?
{
token: "18da3b31a1b1d045500ad49e17836d5a",
note: "",
attributes: {
simply_test: "1"
},
original_total_price: 2900,
total_price: 2900,
total_discount: 0,
total_weight: 0,
item_count: 1,
items: [..],
requires_shipping: true,
currency: "USD"
}
3
Answers
I would adjust your shop so that you transfer the info you store in cart attributes as line item properties. Those do transfer to checkout scripts. Does not look good for cart note or attributes.
Yes, it is possible
This should get you the cart attributes anywhere on Shopify: