Hi, I’m looking for a code that displays the number of available color options under the product name on the collections page. Please see example image below. Thanks in advance for any help.
Hi. Yes, similar to that.
Hello @bougli ,
First you creat metafield go to setting > custom data > select product > creat metafield name “colorname”
then go to product select product
and then type
go to theme and edit code search file main-collection-product-grid.liquid and paste the code in line no 74
{{ product.metafields.custom.colorname }}
Result:
Thanks!







