Если корзина пустое Shopify
{% if cart.item_count == 0 %}
<script>window.location.replace("/collections/all");</script>
{% endif %}
Joynal Abedin
{% if cart.item_count == 0 %}
<script>window.location.replace("/collections/all");</script>
{% endif %}