From b83f58175e146fc726007563439609bb74c00d2f Mon Sep 17 00:00:00 2001 From: adildev101 <108662497+adildev101@users.noreply.github.com> Date: Mon, 5 Feb 2024 16:29:27 +0100 Subject: [PATCH] DARK: Themes fix the product page (#431) ## JIRA Ticket [YSHOP2-X](https://youcanshop.atlassian.net/browse/YSHOP2-X) ## QA Steps - [ ] `pnpm i` - [ ] `pnpm dev` ## Note fix the product page to display the product instead of just a placeholder --- sections/product.liquid | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sections/product.liquid b/sections/product.liquid index 69d7598c..5497ad43 100644 --- a/sections/product.liquid +++ b/sections/product.liquid @@ -17,13 +17,18 @@
{%- assign selected_product = section.settings.product -%} + {%- if product -%} + {%- assign selected_product = product -%} + {%- endif -%} + {%- if selected_product -%} {%- render 'single-product', product: selected_product, section: section -%} {%- else -%} {%- render 'single-product-placeholder', section: section, id: id -%} - {%- endif %} + {%- endif -%}
+ {%- schema -%} { "limit": 1,