Show number of products within each collection has

Highlighted
New Member
3 0 0

Hello,

We were wondering if it would be possible to show the number of products within each collection from a page:

https://www.royalbodykits.com/pages/abarth-595-2012-2015

For example:

(5) Wide Body Kits, (3) Body Kits...

 

Regards,

0 Likes
Highlighted

Hi,
You can use all_products_count of collection object to show that number, more detail here https://shopify.dev/docs/themes/liquid/reference/objects/collection#collection-all_products_count

CRO Expert at PageFly - Advanced Shopify Page Builder.
- PageFly Page Builder: Website | Facebook | LinkedIn | Group
- [Tutorial] How to customize Shopify product page: academy.pagefly.io/customize-shopify-product-pages.
0 Likes