Shopify themes, liquid, logos, and UX
Hi,
I'm using the minimal theme and I would like to add the inventory quantity for my products on their respective pages. I want it to show as "We have _ available." or "Out of Stock".
Thanks
Solved! Go to the solution
This is an accepted solution.
Welcome to the Shopify community!
and Thanks for your Good question. 😊
can you please add this code whenever do you have show
<div id="variant-inventory">
{% 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 %}
</div>
This is an accepted solution.
Welcome to the Shopify community!
and Thanks for your Good question. 😊
can you please add this code whenever do you have show
<div id="variant-inventory">
{% 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 %}
</div>
Thank you!
it's my pleasure to help us
Hi,
I'm using the minimal theme and I would like to add the inventory quantity for my products on their respective pages. I have a variant product.
Can you help to solve this issue
Thank you
yes, please above code
hello, @KetanKumar
thats not working for me for my variant products. Its only listing the quantity for the first variant. Can you suggest another option?
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community!😊
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024