I am hoping to be able to show the quantity left of a product on the collections page using the Studio theme. I want customers to know how many of something is left before they click on an item. Can someone tell me how to do this?
@simplycreative1 Hope you are doing well.
for that need to add some custom code in your theme. by adding custom code this will be easily manage.
do you have knowledge of liquid, js coding?
Not really, but I think I could figure it out if there is specific things to copy-paste into the code.
@simplycreative1 Could you please share your store Url?
@simplycreative1 Please follow the steps as below:
-
In your theme editor, search for the “card-product.liquid” file.
-
In that file search for the class “card__information-volume-pricing-note”
-
And after that class closing div add the below code
{% assign firstVar = card_product.first_available_variant %}
{% if firstVar.inventory_quantity >= 1 %}
{{ firstVar.inventory_quantity }} product available
{% endif %}
Please check the attachment for better placement of the code:
Hi,
Under " card-product.liquid" I am not finding “card__information-volume-pricing-note” I tried Ctrl F and still nothing. I also read the entire code and didnt see it in card product.
Do you know if there is another place to look?
Thank you!!
@simplycreative1 it looks like some app code is configured there. are you using the BOLD app?
Yes! I am using the bold app too. Can it not be done if Im using the bold app? Thanks for all your help!!
