Shopify themes, liquid, logos, and UX
How do I display each variants quantity inside the product-variant-option.liquid?
Tried pretty much any combo I could think of, but not getting any values...
Need the quantity of each listed variant (for size) so I can display it next to each size
Solved! Go to the solution
This is an accepted solution.
Hi @Zeuligan,
You can use the following for the product-variant-options.liquid file:
Code:
{{ value.variant.inventory_quantity }}
Hi @Zeuligan,
Please send the website link, I will check it for you
Hi @Zeuligan
Can you share you store URL and Password if it password protected so I can check and try to help you out
-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR
-If you need an expert Shopify developer for customization and development, feel free to contact me.
Email: Mehran.ali5300@gmail.com
WhatsApp: +92 343 0211536
Please share with me your store URL and show me specifically which place do you want to add the feature
Best,
Daisy
I can't share anything, its both a secret project and mostly it's a local CLI environment. It's Dawn 15 and it's in the product-variant-option.liquid. Basically next to each size I want to display that variants stock levels.
I'm closer, but not solved.
This is an accepted solution.
Hi @Zeuligan,
You can use the following for the product-variant-options.liquid file:
Code:
{{ value.variant.inventory_quantity }}
THANK YOU SIR 😍 I'm so grateful. Works like a charm 🙂
You again, thats 2 times you helped me. Thank you!
Do you know if there is a way to show only the available variant options when the
Hi @Zeuligan,
Please send me the product link describing this, I will check it out
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025