How do I show only the available quantity on the product page? (Brooklyn Theme) (ex: If there’s only 1 available art print, I want the shown quantity allowed to be added 1. Right now you can add as many and it sums up the price when you go to the cart. Thanks whoever can help out with this issue!
Welcome to the Shopify community!
and Thanks for your Good question.
please add this code product-template file whenever do you have display
{% if product.variants.first.inventory_management == "shopify" %}
{% if product.variants.first.inventory_quantity > 0 %}
We currently have {{ product.variants.first.inventory_quantity }} in stock.
{% else %}
The product is out of stock
{% endif %}
{% else %}
This product is available
{% endif %}
Thank you and thanks for your help. I tried to add that code to the “product.liquid”. Copied and pasted it at the end of the code, but it’s still having the issue of showing unlimited quanities. Did I place it in the correct spot? Thanks for you help!