Personalized checkout and custom promotions with Shopify Scripts
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.
We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024