Shopify themes, liquid, logos, and UX
I don't know if this will makes sense but I'm wondering if there is a way to add the total amount of items in stock for each sub category. For example on my home page u can drop down "Pokemon TCG" to set lists then you click say "Shining Fates" which will show 3 sub categories. I'd love for it to show on each of those 3 sub categories the total items for sale in there. I use the Dawn theme and web URL is https://hypebyte.co.nz/
Hi @HypeByte,
See if this code helps.
{% for product in collection.products %}
{% if product.title == "...name of the product..." %}
{{ product.title }} {{ product.variants.first.inventory_quantity }}
{% endif %}
{% endfor %}
If you need more specific help, share the code from the header where you have the class "header__menu-item" and the class "header__submenu"?
You may find the code in the file in sections > header.liquid.
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024