Add in stock status to product/collection pages - Debut theme

gwilliams
Explorer
90 0 21

Hello

I am using the Debut theme and I would like a 'In stock' inventory status to be shown on the product/collection pages with products that are available. A 'Out of stock' status appears on the out of stock products next to the price, so not too sure why the In stock status isn't showing up on products that are in stock. Our inventory is updated and enabled. We are using the Debut theme. I have added screenshots to show and links:

https://display-sign.co.uk/collections/chalkboards/products/outdoor-chalkboard-122-x-244cm

https://display-sign.co.uk/collections/poster-snap-frames/products/snap-frame-a4-silver-25mm

 

Kind Regards

Screenshot 2021-05-07 at 12.08.35.pngScreenshot 2021-05-07 at 12.08.24.png

KetanKumar
Shopify Partner
18927 1986 6999

@gwilliams 

sorry for this issue can you please add this code product page 

<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
0 Likes