Accessing cart attributes inside post purchase page additional scripts

aronb
Shopify Partner
2 0 0

Is it possible to access cart attributes inside the post purchase additional scripts? Similar to the example here https://shopify.dev/docs/api/ajax/reference/cart#update-cart-attributes let's say I have the following cart attribute set

 

 

 

{
  attributes: {
    'gift_wrap': 'Yes'
  }
}

 

 

 

How can I access this value inside the post purchase page additional script? It seems liquid code does not work here but works correctly on order status page additional script using the following liquid code:

 

 

 

{{ attributes.gift_wrap }}

 

 

 

 

Thank you.

Replies 0 (0)