Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
fix the product page (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
adildev101 authored Feb 5, 2024
1 parent 3ed8fe2 commit 89a892f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sections/product.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@
{%- endstyle -%}

<section class='product_customization-{{ id }}'>
{%- 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 -%}
</section>

{%- schema -%}
Expand Down

0 comments on commit 89a892f

Please sign in to comment.