Hi. I'm using a variation of the Debut theme. I'm trying to pass a single product to the "product-card-grid" snippet. I've found the basic syntax, but don't understand how to specify one product. This is what I have so far (that isn't working):
{% include 'product-card-grid', max_height: 100%, product: product['edyes-vegan-deep-nourishing-serum-organic'] %}
What am I doing wrong?
Thanks - Joe
I was able to solve my own problem. Here's the proper format for the code:
{% assign suggestedProduct = all_products['edyes-vegan-deep-nourishing-serum-organic'] %}
{% assign maxheight = 200 %}
{% include 'product-card-grid', max_height: maxheight, product: suggestedProduct, show_vendor: section.settings.show_vendor %}
User | Count |
---|---|
803 | |
116 | |
92 | |
86 | |
73 |