Dawn theme- How to show inventory Count On The Collection Page?

Hi, I’m using Dawn theme. I want to show inventory count On The Collection Page so that customers can view directly product quantity. Is there a solution? Thank you in advance.

Hi @Geedel2022 , Thank you for your question! This is PageFly - a Free Shopify Landing Page Builder. I think this is one of the most prominent concern of users.

I have a similar one to your question hope it would be helpful to you

https://community.shopify.com/c/technical-q-a/how-to-show-inventory-count-on-the-collection-page/td-p/1605232

Also, you can check our guide to build a high conversion Homepage and check out some tips for Holiday ideas.

It would be a good choice for you to have professional sites that look incredible on mobile & desktop without any extra coding, and you will have lots more time focusing on marketing strategies, so you can consider checking PageFly with 24/7 support live chat.

If you feel my answer is helpful, like it or give it a thumb up. Let me know if you have any questions. Cheers!

I have tried the solution of the link you give. It is pity that it didn’t work as my theme is Dawn. Thank you for your advice anyway.

Hi @Geedel2022

  1. Go to card-product.liquid file and add below code.
{%- assign inventory = card_product.selected_or_first_available_variant.inventory_quantity -%}
{%- if template.name == "collection" and inventory >= 1 -%}

Inventory: {{ inventory }}

{%- endif -%}

Happy Coding!!

3 Likes

@nidhipatel You’re genius, the best! It works. Thank you so much.

Did not work on my Dawn v 13 theme.. Do you know how to display the same inventory level block that is available natively on the product pages?

Hi @nidhipatel , I tried the code with my Trade free theme, but it doesn’t work, and nothing changed in the product card