A space to discuss online store customization, theme development, and Liquid templating.
Hello,
I'm new to Shopify and using liquid but do have some knowledge PHP and JavaScript. I'm looking to achieve the following but so far I have been unsuccessful. I'd really appreciate any help and if possible an example.
I have lots of products with variants 'Size' and 'Product Quantity'. On the product card I'm wanting to show size badges for the 'Pack' in 'Product Quantity' only. I'd then like to check if that selection is in stock/available. The output would be something like this:
Medium - In Stock
Large - In Stock
X-Large - Sold Out
So it looks at all sizes but pack only. So far I have only been able output everything but I've not been able to filter down to just pack. I hope that makes sense.