Show available inventory on product page - Minimal Theme

Solved
MannoGaming
New Member
2 0 2

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

KetanKumar
Shopify Partner
14125 1644 5063

This is an accepted solution.

@MannoGaming 

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>
If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
MannoGaming
New Member
2 0 2

Thank you!

KetanKumar
Shopify Partner
14125 1644 5063

@MannoGaming 

it's my pleasure to help us

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
JamalRasid
New Member
1 0 0

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

0 Likes
KetanKumar
Shopify Partner
14125 1644 5063

@JamalRasid 

yes, please above code

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes