I would like to add a “similar products” or “related products” option to my product pages using the Foundry theme.
Luna, Roadie, Netizen, and Picklejuice all have this option.
Does anyone know a code I can use to emulate this on my theme?
Thank you.
I did this:
<div id="related_products"> {% for category in product.categories %} <h2>MORE {{ category.name }} PRODUCTS</h2>
<div class="related_products {{ category.permalink }}"> {% for product in category.products %} <a href="{{ product.url }}" title="View {{ product.name | escape }}" class="product-a"> <img class="product-img" src="{{ product.image | product_image_url size:"medium" }}" alt="Image of {{ product.name | escape }}" /> </a> {% endfor %} </div> {% endfor %}
</div>