@suyash1 also i get this error on my product page how can I solve it any ideas?
code is here if possible.
{% comment %}
The contents of the product.liquid template can be found in /snippets/product-template.liquid
{% endcomment %}
<div id="section-{{ section.id }}" data-section-id="{{ section.id }}" data-section-type="product-template" data-enable-history-state="true" data-scroll-to-image="{% if section.settings.image_layout == "stacked" %}true{% else %}false{% endif %}">
{% include 'product-template' %}
</div>
{% unless product.empty == empty %}
<script type="application/json" id="ProductJson-{{ section.id }}">
{{ product | json }}
</script>
{% endunless %}
{% schema %}
{
"name": "Product pages",
"class": "product-section",
"settings": [
{
"type": "header",
"content": "Product photos"
},
{
"type": "select",
"id": "image_layout",
"label": "Image display",
"default": "stacked",
"options": [
{
"value": "stacked",
"label": "Stacked"
},
{
"value": "thumbnail",
"label": "Thumbnail"
}
]
},
{
"type": "select",
"id": "product_photo_alignement",
"label": "Image alignement",
"default": "left",
"options": [
{
"value": "left",
"label": "Left"
},
{
"value": "right",
"label": "Right"
}
]
},
{
"type": "checkbox",
"id": "enable_zoom",
"label": "Enable image zoom",
"default": true
},
{
"type": "header",
"content": "Product details"
},
{
"type": "checkbox",
"id": "product_vendor",
"label": "Show vendor",
"default": false
},
{
"type": "checkbox",
"id": "product_title_size",
"label": "Big product tite",
"default": false
},
{
"type": "select",
"id": "product_header_alignement",
"label": "Alignement",
"default": "",
"options": [
{
"value": "",
"label": "Left"
},
{
"value": "text-center",
"label": "Center"
}
]
},
{
"type": "select",
"id": "product_selector",
"label": "Variant picker type",
"options": [
{
"value": "radio",
"label": "Button"
},
{
"value": "select",
"label": "Dropdown"
}
]
},
{
"type": "checkbox",
"id": "quantity_enabled",
"label": "Show quantity picker"
},
{
"type": "checkbox",
"id": "button_cart_icon",
"label": "Show button icon",
"default": true
},
{
"type": "checkbox",
"id": "enable_payment_button",
"label": "Show dynamic checkout button",
"default": false
},
{
"type": "checkbox",
"id": "show_description",
"label": "Show description",
"default": true
},
{
"type": "checkbox",
"id": "social_sharing_products",
"label": "Enable product sharing",
"default": true
},
{
"type": "checkbox",
"id": "show_product_tags",
"label": "Show product tags",
"default": true
}
,
{
"type": "header",
"content": "Product tabs"
},
{
"type": "checkbox",
"id": "dbtfy_product_tabs_first",
"label": "Open first tab",
"default": true
}
],
"blocks" : [
{
"type": "description",
"name": "Description",
"limit": 1,
"settings": [
{
"type": "text",
"id": "dbtfy_product_tabs_icon",
"label": "Icon",
"default": "list",
"info": "Enter the name of any free solid icons on [FontAwesome](https:\/\/fontawesome.com\/icons?d=gallery&s=solid&m=free)"
},
{
"type": "text",
"id": "dbtfy_product_tabs_title",
"label": "Title",
"default": "Details",
"info": "To hide the default description, uncheck the \"Show description\" box above."
}
]
},
{
"type": "reviews",
"name": "Reviews",
"limit": 1,
"settings": [
{
"type": "checkbox",
"id": "dbtfy_product_tabs_review",
"label": "Show star ratings",
"default": true
},
{
"type": "text",
"id": "dbtfy_product_tabs_icon",
"label": "Icon",
"default": "thumbs-up",
"info": "Enter the name of any free solid icons on [FontAwesome](https:\/\/fontawesome.com\/icons?d=gallery&s=solid&m=free)"
},
{
"type": "text",
"id": "dbtfy_product_tabs_title",
"label": "Title",
"default": "Reviews",
"info": "To show your review widget in product tabs, go in \"Review app\" > \"Review widget\" and select the \"In product tabs\" position"
}
]
},
{
"type": "text",
"name": "Text/Image/HTML",
"settings": [
{
"type": "select",
"id": "text_alignment",
"label": "Text alignment",
"default": "text-center",
"options": [
{
"value": "",
"label": "Left"
},
{
"value": "text-center",
"label": "Center"
},
{
"value": "text-right",
"label": "Right"
}
]
},
{
"type": "text",
"id": "dbtfy_product_tabs_icon",
"label": "Icon",
"info": "Enter the name of any free solid icons on [FontAwesome](https:\/\/fontawesome.com\/icons?d=gallery&s=solid&m=free)"
},
{
"type": "text",
"id": "dbtfy_product_tabs_title",
"label": "Title",
"default": "Rich text"
},
{
"type": "richtext",
"id": "dbtfy_product_tabs_text",
"label": "Text"
},
{
"type": "image_picker",
"id": "dbtfy_product_tabs_image",
"label": "Image"
},
{
"type": "html",
"id": "dbtfy_product_tabs_html",
"label": "HTML"
},
{
"type": "header",
"content": "Visibility settings"
},
{
"type": "text",
"id": "dbtfy_product_tabs_type",
"label": "Product type",
"info": "Comma-separated"
},
{
"type": "text",
"id": "dbtfy_product_tabs_tag",
"label": "Product tag",
"info": "Comma-separated"
},
{
"type": "product",
"id": "dbtfy_product_tabs_product",
"label": "Product"
},
{
"type": "collection",
"id": "dbtfy_product_tabs_collection",
"label": "Collection"
}
]
}
] } {% endschema %}
{% if product.metafields.loox.num_reviews %}
<script id="looxSchemaJson" type="application/ld+json">
{
"@type": "Product",
"@id": {{ canonical_url | json }},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "{{ product.metafields.loox.avg_rating }}",
"reviewCount": "{{ product.metafields.loox.num_reviews }}"
},
"name": {{ product.title | json }}
}
</script>
{% endif %}