Hello, I’m looking for a way for my product recommendations to recommend specific variants of a product, as opposed to just recommending the general product and display its featured media.
Right now I have:
{%- for product in recommendations.products -%}
{%- render ‘pr_loop_grid_1’,product:product,use_cdt:use_cdt, . . . %}
{%- endfor -%}
Where ‘pr_loop_grid_1’ is the snippet that handles rendering the product.
I want, for each product in recommendations.products, to take an arbitrary variant for that product and render that. How would I go about doing this?