show quantity on product page Kalles theme

hannah0797
Tourist
9 0 2

Hi,

 

I'm wanting to show stock quantity on the product page.

 

Using Kalles theme - could someone help please?

Replies 3 (3)

saim007
Shopify Partner
496 64 83

Use bellow code for the showing stock quantity on product page - 

{% if product.available %}
  {% assign variant = product.selected_or_first_available_variant %}
  <p>Stock Quantity: {{ variant.inventory_quantity }}</p>
{% else %}
  <p>This product is currently unavailable.</p>
{% endif %}

Put this code in your product-template, product or main-product whatever your product template liquid file where you want to show the stock quantity.

Saim | Shopify Partner Expert

Was I helpful?

Buy me a Coffee

🙂
Hire me   to unlock the full potential of your e-commerce store 🙂
hannah0797
Tourist
9 0 2

Hi,

 

Thank you!

 

It's currently showing as nearly off the screen to the right - do you know how i can move it? 

saim007
Shopify Partner
496 64 83

without store url how can i help you?

Saim | Shopify Partner Expert

Was I helpful?

Buy me a Coffee

🙂
Hire me   to unlock the full potential of your e-commerce store 🙂