Si el carrito vacío Shopify

{% if cart.item_count == 0 %}
<script>window.location.replace("/collections/all");</script>
{% endif %}
Joynal Abedin