getCartState()
The getCartState
function returns the current State object.
<script type="module">
import { getCartState } from '{{ "liquid-ajax-cart-v1.11.2.js" | asset_url }}'
const state = getCartState();
console.log(state);
</script>
The getCartState
function returns the current State object.
<script type="module">
import { getCartState } from '{{ "liquid-ajax-cart-v1.11.2.js" | asset_url }}'
const state = getCartState();
console.log(state);
</script>