Specifying a product for Debut theme product-card-grid snippet.

Shopify Partner
14 0 0

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

0 Likes
Shopify Partner
14 0 0

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 %}
0 Likes