From 8348eff0af8ab54ad521229797fc6055fd20cd47 Mon Sep 17 00:00:00 2001 From: pglevy Date: Mon, 3 May 2021 16:26:59 -0400 Subject: [PATCH] add other products in category to product template --- _layouts/product.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/_layouts/product.html b/_layouts/product.html index 9c6adb2..335474e 100644 --- a/_layouts/product.html +++ b/_layouts/product.html @@ -38,6 +38,19 @@

{{ page.title }}

{{ content }} + + {% assign related_products = site.products | where: "category", page.category %} +

Other products in {{ page.category }}

+ +