- {%- render 'price',
- product: product,
- use_variant: true,
- show_badges: true,
- price_class: 'price--large'
- -%}
-
- {%- if product.quantity_price_breaks_configured? -%}
-
-
{{ 'products.product.volume_pricing.note' | t }}
+ {%- for block in section.blocks -%}
+ {%- case block.type -%}
+ {%- when '@app' -%}
+ {% render block %}
+ {%- when 'text' -%}
+
+ {{- block.settings.text -}}
+
+ {%- when 'title' -%}
+
- {%- endif -%}
+ {%- when 'price' -%}
+
+ {%- render 'price',
+ product: product,
+ use_variant: true,
+ show_badges: true,
+ price_class: 'price--large'
+ -%}
+
+ {%- if product.quantity_price_breaks_configured? -%}
+
+ {{ 'products.product.volume_pricing.note' | t }}
+
+ {%- endif -%}
{%- if cart.taxes_included -%}
{{ 'products.product.include_taxes' | t }}
@@ -122,554 +122,652 @@
{{ 'products.product.shipping_policy_html' | t: link: shop.shipping_policy.url }}
{%- endif -%}
-
- {%- assign product_form_installment_id = 'product-form-installment-' | append: section.id -%}
- {%- form 'product', product, id: product_form_installment_id, class: 'installment caption-large' -%}
-
- {{ form | payment_terms }}
- {%- endform -%}
-
- {%- when 'inventory' -%}
-
- {%- if product.selected_or_first_available_variant.inventory_management == 'shopify' -%}
- {%- if product.selected_or_first_available_variant.inventory_quantity > 0 -%}
- {%- if product.selected_or_first_available_variant.inventory_quantity <= block.settings.inventory_threshold -%}
-
- {%- if block.settings.show_inventory_quantity -%}
- {{- 'products.product.inventory_low_stock_show_count' | t: quantity: product.selected_or_first_available_variant.inventory_quantity -}}
+
+ {%- assign product_form_installment_id = 'product-form-installment-' | append: section.id -%}
+ {%- form 'product', product, id: product_form_installment_id, class: 'installment caption-large' -%}
+
+ {{ form | payment_terms }}
+ {%- endform -%}
+
+ {%- when 'inventory' -%}
+
+ {%- if product.selected_or_first_available_variant.inventory_management == 'shopify' -%}
+ {%- if product.selected_or_first_available_variant.inventory_quantity > 0 -%}
+ {%- if product.selected_or_first_available_variant.inventory_quantity
+ <= block.settings.inventory_threshold
+ -%}
+
+ {%- if block.settings.show_inventory_quantity -%}
+ {{-
+ 'products.product.inventory_low_stock_show_count'
+ | t: quantity: product.selected_or_first_available_variant.inventory_quantity
+ -}}
+ {%- else -%}
+ {{- 'products.product.inventory_low_stock' | t -}}
+ {%- endif -%}
{%- else -%}
- {{- 'products.product.inventory_low_stock' | t -}}
+
+ {%- if block.settings.show_inventory_quantity -%}
+ {{-
+ 'products.product.inventory_in_stock_show_count'
+ | t: quantity: product.selected_or_first_available_variant.inventory_quantity
+ -}}
+ {%- else -%}
+ {{- 'products.product.inventory_in_stock' | t -}}
+ {%- endif -%}
{%- endif -%}
{%- else -%}
-
- {%- if block.settings.show_inventory_quantity -%}
- {{- 'products.product.inventory_in_stock_show_count' | t: quantity: product.selected_or_first_available_variant.inventory_quantity -}}
+ {%- if product.selected_or_first_available_variant.inventory_policy == 'continue' -%}
+
+ {{- 'products.product.inventory_out_of_stock_continue_selling' | t -}}
{%- else -%}
- {{- 'products.product.inventory_in_stock' | t -}}
+
+ {{- 'products.product.inventory_out_of_stock' | t -}}
{%- endif -%}
{%- endif -%}
- {%- else -%}
- {%- if product.selected_or_first_available_variant.inventory_policy == 'continue' -%}
-
- {{- 'products.product.inventory_out_of_stock_continue_selling' | t -}}
- {%- else -%}
-
- {{- 'products.product.inventory_out_of_stock' | t -}}
- {%- endif -%}
{%- endif -%}
+
+ {%- when 'description' -%}
+ {%- if product.description != blank -%}
+
+ {{ product.description }}
+
{%- endif -%}
-
- {%- when 'description' -%}
- {%- if product.description != blank -%}
-
- {{ product.description }}
-
- {%- endif -%}
- {%- when 'sku' -%}
-
- {{ 'products.product.sku' | t }}: {{- product.selected_or_first_available_variant.sku -}}
-
- {%- when 'custom_liquid' -%}
- {{ block.settings.custom_liquid }}
- {%- when 'collapsible_tab' -%}
-
-
-
-
- {% render 'icon-accordion', icon: block.settings.icon %}
-
- {{ block.settings.heading | default: block.settings.page.title }}
-
+ {%- when 'sku' -%}
+
+ {{ 'products.product.sku' | t }}:
+ {{- product.selected_or_first_available_variant.sku -}}
+
+ {%- when 'custom_liquid' -%}
+ {{ block.settings.custom_liquid }}
+ {%- when 'collapsible_tab' -%}
+
+
+
+
+ {% render 'icon-accordion', icon: block.settings.icon %}
+
+ {{ block.settings.heading | default: block.settings.page.title | escape }}
+
+
+ {% render 'icon-caret' %}
+
+
+ {{ block.settings.content }}
+ {{ block.settings.page.content }}
- {% render 'icon-caret' %}
-
-
- {{ block.settings.content }}
- {{ block.settings.page.content }}
+
+
+ {%- when 'quantity_selector' -%}
+
- {%- when 'quantity_selector' -%}
-
- {%- when 'popup' -%}
-
-
- {%- when 'share' -%}
- {% assign share_url = product.selected_variant.url | default: product.url | prepend: request.origin %}
- {% render 'share-button',
- block: block,
- share_link: share_url
- %}
-
- {%- when 'variant_picker' -%}
- {% render 'product-variant-picker', product: product, block: block, product_form_id: product_form_id %}
- {%- when 'buy_buttons' -%}
- {%- render 'buy-buttons', block: block, product: product, product_form_id: product_form_id, section_id: section.id, show_pickup_availability: true -%}
- {%- when 'rating' -%}
- {%- if product.metafields.reviews.rating.value != blank -%}
- {% liquid
- assign rating_decimal = 0
- assign decimal = product.metafields.reviews.rating.value.rating | modulo: 1
- if decimal >= 0.3 and decimal <= 0.7
- assign rating_decimal = 0.5
- elsif decimal > 0.7
- assign rating_decimal = 1
- endif
- %}
-
-
-
-
-
- {{- product.metafields.reviews.rating.value }} /
- {{ product.metafields.reviews.rating.value.scale_max -}}
-
-
-
- ({{ product.metafields.reviews.rating_count }})
-
- {{- product.metafields.reviews.rating_count }}
- {{ 'accessibility.total_reviews' | t -}}
-
-
- {%- endif -%}
- {%- when 'complementary' -%}
-
- {%- if recommendations.performed and recommendations.products_count > 0 -%}
-
- {% render 'product-media-modal' variant_images: variant_images %}
+ {% render 'product-media-modal', variant_images: variant_images %}
- {% assign popups = section.blocks | where: 'type', 'popup' %}
- {%- for block in popups -%}
-