Hi @Hardik29418
Really appreciate your quick reply.
The following is the code for my product-template.liquid file. I cant find where to put the code.
Can you guide me?
Thanks for your patience
{% comment %}
** Product - default view **
- Product template
{% endcomment %}
{% if collection.previous_product or collection.next_product or section.settings.product_breadcrumb %}
{% if collection.previous_product or collection.next_product %}
{% endif %}
{% if section.settings.product_breadcrumb %}
{% endif %}
{% endif %}
{% comment %}Check to see if sidebar should be enabled{% endcomment %}
{% if section.blocks.size > 0 %}
{% assign sidebar = true %}
{% else %}
{% assign sidebar = false %}
{% endif %}
{% if sidebar %}
{% include 'sidebar' %}
{% else %}
{% endif %}
{% include 'product-images' %}
{% assign collection_handles = product.collections | map: ‘handle’ %}
{% assign variant = product.selected_or_first_available_variant %}
{% if product.available %}
{% comment%}
{% if settings.sale_banner_enabled and product.compare_at_price_max > product.price %}
{{ 'collections.general.sale' | t }}
{% endif %}
{% endcomment %}
{% assign product_tags = product.tags | join: ’ ’ %}
{% if product_tags contains ‘sale’ %}
{{ 'collections.general.sale' | t }}
{% endif %}
{% endif %}
{% if collection_handles contains ‘new’ %}
{{ 'collections.general.new' | t }}
{% endif %}
{% if collection_handles contains 'pre-order' %}
{{ 'collections.general.pre_order' | t }}
{% endif %}
{% if section.settings.display_vendor %}
{{ product.vendor | link_to_vendor }}
{% endif %}
{% if variant.sku != blank and section.settings.display_sku %}
{{ variant.sku }}
{% endif %}
{% assign titleSplit = product.title | split: " | " %}
{{ titleSplit[0] }}{{ titleSplit[1] }} {{ titleSplit[2] }}
{% if section.settings.enable_shopify_product_badges and settings.enable_shopify_review_comments %}
{% endif %}
{% assign product_tags = product.tags | join: ’ ’ %}
{% if product_tags contains ‘meta-size-chart-’ %}
{% for tag in product.tags %}
{% if tag contains ‘meta-size-chart-’ %}
{{ ‘products.product.size_chart’ | t }}
{% include ‘popup-size-chart’, product_id: product.id %}
{% endif %}
{% endfor %}
{% elsif settings.size_chart != blank %}
{{ ‘products.product.size_chart’ | t }}
{% endif %}
{% if collection_handles contains ‘coming-soon’ %}
{{ 'collections.general.coming_soon' | t }}
{% else %}
{% comment %}{% if variant.available == false %}{{ ‘products.product.sold_out’ | t }}{% endif %}{% endcomment %}
<span itemprop=“price” content=“{{ variant.price | money_without_currency | remove: “,” }}” class=“{% if variant.compare_at_price > variant.price %}sale{% endif %}”>
{% if variant.price > 0 %}
{{ variant.price | money }}
{% else %}
{{ settings.free_price_text }}
{% endif %}
{% if variant.price < variant.compare_at_price and variant.available %}
{{ variant.compare_at_price | money }}
{% endif %}
{% if section.settings.display_savings %}
{% if variant.price < variant.compare_at_price and variant.available %}
{{ ‘products.product.savings’ | t }} {{ variant.compare_at_price | minus: variant.price | times: 100 | divided_by: variant.compare_at_price }}% ({{ variant.compare_at_price | minus: variant.price | money }})
{% endif %}
{% endif %}
{% include ‘product-notify-me’ %}
{% endif %}
{% if section.settings.product_description_position == “top” %}
{% if product.description != blank %}
{% if product.description contains '' %}{{ product.description | split: '' | first }}{% else %}{% include 'product-description-tabs' %}{% endif %}
{% endif %}
{% endif %}
{% if collection_handles contains “engagement-rings” %}
{% if product.metafields["global"]["Metal"] %}- Metal: {{ product.metafields["global"]["Metal"] }}
{% endif %}
{% if product.metafields["global"]["Shape"] %}- Shape: {{ product.metafields["global"]["Shape"] }}
{% endif %}
{% if product.metafields["global"]["Colour"] %}- Colour: {{ product.metafields["global"]["Colour"] }}
{% endif %}
{% if product.metafields["global"]["Clarity"] %}- Clarity: {{ product.metafields["global"]["Clarity"] }}
{% endif %}
{% comment %}
{% if product.metafields[“global”][“Carat”] %}
- Carat: {{ product.metafields[“global”][“Carat”] }}
{% endif %}
{% endcomment %}
{% if product.metafields[“global”][“Centre-Diamond-Weight”] %}
- Centre Diamond Weight: {{ product.metafields[“global”][“Centre-Diamond-Weight”] }}
{% endif %}
{% if product.metafields[“global”][“Total-Carat-Weight”] %}- Total Diamond Weight: {{ product.metafields[“global”][“Total-Carat-Weight”] }}
{% endif %}
{% if product.metafields[“global”][“Certification”] %}
- Certificate: {{ product.metafields[“global”][“Certification”] }}
{% endif %}
{% if product.metafields[“global”][“Diamond”] %}- Diamond: {{ product.metafields[“global”][“Diamond”] }}
{% endif %}
{% endif %}
{% unless collection_handles contains ‘coming-soon’ %}
{% include ‘product-form’ with ‘product’ %}
{% endunless %}
{% if section.settings.product_description_position == “bottom” %}
{% if product.description != blank %}
{% if product.description contains '' %}{{ product.description | split: '' | first }}{% else %}{% include 'product-description-tabs' %}{% endif %}
{% endif %}
{% endif %}
{% if section.settings.review_position == “next_to_gallery” %}
{{ product.metafields.spr.reviews }}
{% endif %}
{% if section.settings.display_collections or section.settings.display_tags or section.settings.display_type %}
{% if section.settings.display_collections %}
{{ 'products.product.collections' | t }}:
{% for col in product.collections %}
{{ col.title }}{% unless forloop.last %},{% endunless %}
{% endfor %}
{% endif %}
{% if section.settings.display_type %}
{{ 'products.product.product_types' | t }}:
{{ product.type | link_to_type }}
{% endif %}
{% if section.settings.display_tags %}
{% for tag in product.tags %}
{% if forloop.first %}
{{ 'products.product.tags' | t }}:
{% endif %}
{% unless tag contains ‘meta-’ %}
{{ tag }}{% unless forloop.last %},{% endunless %}
{% endunless %}
{% endfor %}
{% endif %}
{% endif %}
{% if section.settings.display_social_buttons %}
{% include "social-buttons" with "product" %}
{% endif %}
{% if product.description contains “” %}
{% capture desctabs %}{{ product.description | split: '' | last }}{% endcapture %}{% include 'product-description-tabs' with desctabs %}
{% endif %}
{% if section.settings.review_position == “below_gallery” %}
{{ product.metafields.spr.reviews }}
{% endif %}
{% if sidebar %}
{% if section.settings.display_related_products %}
{% include ‘include-related-products’ %}
{% endif %}
{% if section.settings.display_recently_viewed %}
{% include ‘include-recently-viewed’ %}
{% endif %}
{% else %}
{% if section.settings.display_related_products %}
{% include ‘include-related-products’ %}
{% endif %}
{% if section.settings.display_recently_viewed %}
{% include ‘include-recently-viewed’ %}
{% endif %}
{% endif %}
{% schema %}
{
“name”: “Product”,
“class”: “product-template”,
“settings”: [
{
“type”: “checkbox”,
“id”: “product_breadcrumb”,
“label”: “Show breadcrumb links”
},
{
“type”: “checkbox”,
“id”: “display_vendor”,
“label”: “Show vendor”
},
{
“type”: “checkbox”,
“id”: “display_sku”,
“label”: “Show SKU”
},
{
“type”: “checkbox”,
“id”: “display_savings”,
“label”: “Show price savings”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “display_collections”,
“label”: “Show collections”
},
{
“type”: “checkbox”,
“id”: “display_type”,
“label”: “Show type”
},
{
“type”: “checkbox”,
“id”: “display_tags”,
“label”: “Show tags”
},
{
“type”: “checkbox”,
“id”: “display_social_buttons”,
“label”: “Show social media share icons”,
“default”: true
},
{
“type”: “radio”,
“id”: “product_description_position”,
“label”: “Description position”,
“options”: [
{
“value”: “top”,
“label”: “Above product form”
},
{
“value”: “bottom”,
“label”: “Below product form”
}
]
},
{
“type”: “header”,
“content”: “Product gallery”
},
{
“type”: “checkbox”,
“id”: “gallery_arrows”,
“label”: “Show arrows on product gallery”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “activate_zoom”,
“label”: “Magnify product images on hover”
},
{
“type”: “checkbox”,
“id”: “enable_product_lightbox”,
“label”: “Enable product gallery popup”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “activate_autoplay”,
“label”: “Enable product gallery slideshow”
},
{
“type”: “select”,
“id”: “slideshow_animation”,
“label”: “Gallery transition”,
“options”: [
{
“value”: “slide”,
“label”: “Slide”
},
{
“value”: “fade”,
“label”: “Fade”
}
],
“default”: “slide”
},
{
“type”: “radio”,
“id”: “product_images_position”,
“label”: “Gallery position”,
“options”: [
{
“value”: “left”,
“label”: “Left”
},
{
“value”: “right”,
“label”: “Right”
}
]
},
{
“type”: “checkbox”,
“id”: “product_thumbs”,
“label”: “Show product gallery thumbnails”,
“default”: true
},
{
“type”: “select”,
“id”: “thumbnail_position”,
“label”: “Thumbnail position”,
“default”: “bottom-slider”,
“options”: [
{
“value”: “bottom-thumbnails”,
“label”: “Bottom (grid)”
},
{
“value”: “bottom-slider”,
“label”: “Bottom (slider)”
},
{
“value”: “left-thumbnails”,
“label”: “Left”
},
{
“value”: “right-thumbnails”,
“label”: “Right”
}
]
},
{
“type”: “header”,
“content”: “Product reviews”
},
{
“type”: “paragraph”,
“content”: “Reviews app must be enabled. Learn more”
},
{
“type”: “checkbox”,
“id”: “enable_shopify_product_badges”,
“label”: “Display star rating on product”,
“default”: false
},
{
“type”: “radio”,
“id”: “review_position”,
“label”: “Reviews position”,
“default”: “next_to_gallery”,
“options”: [
{
“value”: “next_to_gallery”,
“label”: “In product description area”
},
{
“value”: “below_gallery”,
“label”: “Below image/description”
}
]
},
{
“type”: “header”,
“content”: “Dynamic checkout button”
},
{
“type”: “paragraph”,
“content”: “Lets customers check out directly using a familiar payment method. Learn more”
},
{
“type”: “checkbox”,
“id”: “show_payment_button”,
“label”: “Show dynamic checkout button”,
“default”: true
},
{
“type”: “header”,
“content”: “Related products”
},
{
“type”: “checkbox”,
“id”: “display_related_products”,
“label”: “Show related products”,
“info”: “Learn more”,
“default”: true
},
{
“type”: “radio”,
“id”: “related_products_style”,
“label”: “Layout”,
“default”: “grid”,
“options”: [
{
“value”: “slider”,
“label”: “Slider”
},
{
“value”: “grid”,
“label”: “Grid”
}
]
},
{
“type”: “range”,
“id”: “related_products_limit”,
“label”: “Limit products”,
“min”: 3,
“max”: 50,
“step”: 1,
“default”: 12
},
{
“type”: “range”,
“id”: “products_per”,
“label”: “Products per row”,
“min”: 3,
“max”: 5,
“step”: 1,
“default”: 3
},
{
“type”: “header”,
“content”: “Recently viewed products”
},
{
“type”: “paragraph”,
“content”: “To test the recently viewed products, view your online store outside of the Editor and visit multiple product pages. Learn more”
},
{
“type”: “checkbox”,
“id”: “display_recently_viewed”,
“label”: “Show recently viewed products”,
“default”: false
},
{
“type”: “text”,
“id”: “rv_title”,
“label”: “Title”,
“default”: “Recently Viewed Items”
},
{
“type”: “radio”,
“id”: “rv_products_style”,
“label”: “Layout”,
“default”: “grid”,
“options”: [
{
“value”: “slider”,
“label”: “Slider”
},
{
“value”: “grid”,
“label”: “Grid”
}
]
},
{
“type”: “range”,
“id”: “rv_max_display”,
“label”: “Products limit”,
“min”: 3,
“max”: 12,
“step”: 1,
“default”: 4
},
{
“type”: “range”,
“id”: “rv_per”,
“label”: “Products per row”,
“min”: 3,
“max”: 5,
“step”: 1,
“default”: 4
},
{
“type”: “header”,
“content”: “Sidebar”
},
{
“type”: “paragraph”,
“content”: “Create a sidebar by adding content blocks.”
},
{
“type”: “checkbox”,
“id”: “toggle”,
“label”: “Toggle sidebar content”,
“default”: false
}
],
“blocks”: [
{
“type”: “filter_by_collection”,
“name”: “Collection list”,
“limit”: 1
},
{
“type”: “menu”,
“name”: “Menu”,
“settings”: [
{
“type”: “link_list”,
“id”: “custom_menu_linklist”,
“label”: “Menu”
}
]
},
{
“type”: “page”,
“name”: “Page”,
“settings”: [
{
“type”: “page”,
“id”: “content_page”,
“label”: “Page”
}
]
},
{
“type”: “recently_viewed”,
“name”: “Recently viewed products”,
“limit”: 1,
“settings”: [
{
“type”: “paragraph”,
“content”: “To test the recently viewed products, view your online store outside of the Editor and visit multiple product pages. Learn more”
},
{
“type”: “text”,
“id”: “sidebar_rv_title”,
“label”: “Title”,
“default”: “Recently Viewed”
},
{
“type”: “range”,
“id”: “sidebar_rv_per”,
“label”: “Products limit”,
“min”: 1,
“max”: 4,
“step”: 1,
“default”: 3
}
]
},
{
“type”: “filter_by_tag”,
“name”: “Tag list”,
“limit”: 1
},
{
“type”: “text”,
“name”: “Text”,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Heading”
},
{
“type”: “richtext”,
“id”: “text”,
“label”: “Text”,
“default”: “
Text area can be used for special announcements or general information.
”
}
]
},
{
“type”: “filter_by_type”,
“name”: “Type list”,
“limit”: 1
},
{
“type”: “filter_by_vendor”,
“name”: “Vendor list”,
“limit”: 1
}
],
“default”: {
“settings”: {
}
}
}
{% endschema %}