From 89a892f74a5da3a7613f669355509bacd59afa23 Mon Sep 17 00:00:00 2001 From: adildev101 <108662497+adildev101@users.noreply.github.com> Date: Mon, 5 Feb 2024 16:30:14 +0100 Subject: [PATCH] fix the product page (#207) --- sections/product.liquid | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sections/product.liquid b/sections/product.liquid index c3ee00bc..14225ad1 100644 --- a/sections/product.liquid +++ b/sections/product.liquid @@ -15,13 +15,17 @@ {%- endstyle -%}
- {%- assign selected_product = section.settings.product %} + {%- 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 -%}