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

Commit

Permalink
DARK: Themes fix the product page (#431)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
adildev101 authored Feb 5, 2024
1 parent 8e71b65 commit b83f581
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sections/product.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@
<section class='product_customization-{{ id }}'>
{%- 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 -%}
{
"limit": 1,
Expand Down

0 comments on commit b83f581

Please sign in to comment.