I can’t for the life of me figure out what the error is on my product-main.liquid file. Been going through it for almost 2 days, but I keep getting the error. Can anyone spot the error?
{% comment %} Define Useful Variables {% endcomment %}
{% assign ss = section.settings %}
{% assign sb = section.settings %}
{% assign selected_variant = product.selected_or_first_available_variant %}
{% assign featured_image = selected_variant.featured_image | default: product.featured_image %}
{% comment %} Product Meta {% endcomment %}
{% comment %} Breadcrumbs {% endcomment %}
{% if ss %}
{% assign show_vendor = ss.show_vendor %}
{%- render 'component_BreadCrumbs', class: 'product-main__breadcrumbs container', show_vendor: show_vendor -%}
{% endif %}
{% comment %} Gallery -- Mobile View {% endcomment %}
{% if product.images == blank %}
{{ 'product-1' | placeholder_svg_tag: 'product-main-gallery-sidescroll__main-item' }}
{% elsif product.images.size == 1 %}
{% assign single_image = product.images | first %}
{% if ss.zoom %}
{% assign first = false %}
{% assign src=single_image | img_url: 'x1200', format: 'pjpg' %}
{% assign zoom_src=single_image | img_url: 'x1200', format: 'pjpg' %}
{%- render 'component_ImageZoom',
class: 'product-main__single-image',
first: first,
src: src,
alt: single_image.alt,
zoom_src: zoom_src,
target: '.zoom-target'
-%}
{% else %}
{% endif %}
{% else %}
{% render 'product-main_gallery--sidescroll', product: product, prevent_loop: true, image_zoom: ss.zoom %}
{% endif %}
{% comment %} Wrapper {% endcomment %}
{% comment %} Gallery {% endcomment %}
{% if product.images == blank %}
{{ 'product-1' | placeholder_svg_tag: 'product-main-gallery-scroll__item' }}
{% else %}
{% if feature %}
{% render 'product-main_gallery--sidescroll', product: product, image_zoom: ss.zoom %}
{% else %}
{% render 'product-main_gallery--scroll', product: product, image_zoom: ss.zoom %}
{% endif %}
{% endif %}
{% comment %} Details {% endcomment %}
{%
render 'product-main_details' with
product: product,
feature: feature,
section: section
%}
{% if ss.show_recommendations %}
{% assign use_product_recommendations = true %}
{%
render 'section-featured-products' with
use_product_recommendations: use_product_recommendations,
heading: ss.heading,
text: ss.text
%}
{% endif %}
{%- schema -%}
{
"name": "Product main",
"settings": [
{
"type": "header",
"content": "Product details"
},
{
"type": "checkbox",
"label": "Show product vendor",
"default": true,
"id": "show_vendor"
},
{
"type": "checkbox",
"label": "Show image zoom",
"default": true,
"id": "zoom"
},
{
"type": "header",
"content": "Product recommendations"
},
{
"type": "checkbox",
"label": "Show product recommendations",
"default": true,
"id": "show_recommendations",
"info": "[Learn more about Shopify Recommendations](https://shopify.dev/themes/product-merchandising/recommendations)"
},
{
"type": "text",
"id": "heading",
"label": "Heading",
"default": "You may also like"
},
{
"type": "text",
"id": "text",
"label": "Text"
}
],
"blocks": [
{
"type": "@app"
}
],
"presets": [
{
"category": "Product",
"name": "Product main"
}
],
"templates": [
"product"
],
"class": "SALVO_SECTION SALVO_SECTION-product-main"
}
{%- endschema -%}
