All things Shopify and commerce
Hello,
Hello,
You need to get the inventory with each product
{% if current_variant.inventory_quantity > 0 and current_variant.inventory_management == 'shopify' %} <p>Stock: {{ current_variant.inventory_quantity }}</p> {% endif %}
Now from next to it use the JS to build the logic a/to your need.
Thanks
Thanks for replying, but please where should I add this code??
is it in (main-cart-items.liquid) or other? I'm using Dawn theme.
Did you find the solution?
Starting 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, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024