Thank you so much for your time, energy and expertise. I sure appreciate it. Here is the code:
{% capture bss_hide_add_to_cart %}{% render ‘bsscommerce-login-to-see-price-hide-add-to-cart’, section_id: section.id, product: product %}{% endcapture %}{% unless bss_hide_add_to_cart contains “Liquid error” %}{{ bss_hide_add_to_cart }}{% endunless %}
{%- if product.compare_at_price > product.price -%}
{%- assign on_sale = true -%}
{%- endif -%}
{%- assign sold_out = true -%}
{%- if product.available -%}
{%- assign sold_out = false -%}
{%- endif -%}
{%- assign current_variant = product.selected_or_first_available_variant -%}
{%- assign featured_image = current_variant.featured_image | default: product.featured_image -%}
{% for image in product.images %}
-
{% endfor %}
{%- for block in section.blocks -%}
{%- case block.type -%}
{%- when '@app' -%}
{% render block %}
{%- when 'text' -%}
{{- block.settings.text -}}
{%- when 'title_wrap' -%}
{{ product.title }}
{%- when 'product_ratting' -%}
{%- when 'product_inventory' -%}
{{ block.settings.availability_title }}
{% if product.variants.first.inventory_management == "shopify" and product.variants.first.inventory_quantity > 0 %}
{{ block.settings.in_stock_title }}
{% else %}
{{ block.settings.out_of_stock_title }}
{% endif %}
{%- when 'product_price' -%}
{{ product.selected_or_first_available_variant.price | money }}
{%- if product.compare_at_price_max > product.price -%}
{{ product.selected_or_first_available_variant.compare_at_price | money }}
{%- endif -%}
{%- include 'product-label' -%}
{%- when 'product_stock' -%}
{% if product.available %}
{% if product.variants.first.inventory_management == "shopify" and product.variants.first.inventory_quantity > 0 %}
{{ block.settings.stock_label1 }}
{{ product.variants.first.inventory_quantity }}
{{ block.settings.stock_label2 }}
{% endif %}
{% endif %}
{%- when 'short_description' -%}
{{ product.metafields.my_fields.short_description }}
{%- when 'swatch_option' -%}
{%- unless block.settings.product_variant_handle == ‘product_variant_without_option’ -%}
{% include ‘product-swatch-variant’ %}
{%- endunless -%}
{%- when 'cart_button' -%}
{%- if block.settings.qty_box_enable -%}
{{ block.settings.qty_title }}
{%- endif -%}
{% include 'wishlist-button' %}
{% if product.available %}
{% include 'product-cart-action' %}
{%- if block.settings.buy_button_enable -%}
{% include 'direct-buy' %}
{% endif %}
{% else %}
{% endif %}
{%- when 'product_sku' -%}
{%- if current_variant.sku.size > 0 -%}
{{ block.settings.product_sku_title }}
{{ current_variant.sku }}
{%- endif -%}
{%- when 'social_icon' -%}
{% include 'social-share' %}
{%- when 'payment_img' -%}
{%- endcase -%}
{%- endfor -%}
{% if section.settings.service_enable %}
-
{{ section.settings.service_title1 }}
{{ section.settings.service_text1 }}
-
{{ section.settings.service_title2 }}
{{ section.settings.service_text2 }}
-
{{ section.settings.service_title3 }}
{{ section.settings.service_text3 }}
{% endif %}
{% schema %}
{
"name": "Product",
"settings": [
{
"type": "header",
"content": "Section Padding"
},
{
"type": "range",
"id": "section_padding_top",
"label": "Section Padding Top",
"min": 0,
"max": 100,
"step": 5,
"unit": "px",
"default": 80
},
{
"type": "range",
"id": "section_padding_bottom",
"label": "Section Padding Bottom",
"min": 0,
"max": 100,
"step": 5,
"unit": "px",
"default": 0
},
{
"type": "header",
"content": "Product Zoom"
},
{
"type": "checkbox",
"id": "zoom_enable",
"label": "Show Product Zoom",
"default": true
},
{
"type": "header",
"content": "Product service"
},
{
"type": "checkbox",
"id": "service_enable",
"label": "Show service",
"default": true
},
{
"type": "text",
"id": "service_title1",
"label": "service title 1",
"default": "DELIVERY INFO"
},
{
"type": "text",
"id": "service_icon1",
"label": "service icon",
"default": "ti-truck",
"info": "[https://themify.me/themify-icons](https://themify.me/themify-icons)"
},
{
"type": "text",
"id": "service_title2",
"label": "service title 2",
"default": "30 DAYS RETURNS"
},
{
"type": "text",
"id": "service_icon2",
"label": "service icon",
"default": "ti-money",
"info": "[https://themify.me/themify-icons](https://themify.me/themify-icons)"
},
{
"type": "text",
"id": "service_title3",
"label": "service title 3",
"default": "10 YEAR WARRANTY"
},
{
"type": "text",
"id": "service_icon3",
"label": "service icon",
"default": "ti-id-badge",
"info": "[https://themify.me/themify-icons](https://themify.me/themify-icons)"
},
{
"type": "textarea",
"id": "service_text1",
"label": "service text 1",
"default": "From then, delivery is generally within 2-10 days, depending on your location."
},
{
"type": "textarea",
"id": "service_text2",
"label": "service text 2",
"default": "Not the right fit? No worries. We'll arrange pick up and a full refund within 7 days including the delivery fee."
},
{
"type": "textarea",
"id": "service_text3",
"label": "service text 3",
"default": "Quality comes first and our products are designed to last."
}
],
"blocks": [
{
"type": "@app"
},
{
"type": "text",
"name": "Text block",
"settings": [
{
"type": "text",
"id": "text",
"default": "Text block",
"label": "Meta metafields text"
}
]
},
{
"type": "title_wrap",
"name": "Product title",
"limit": 1
},
{
"type": "product_ratting",
"name": "Product ratting",
"limit": 1
},
{
"type": "product_inventory",
"name": "Product inventory",
"limit": 1,
"settings": [
{
"type": "text",
"id": "availability_title",
"label": "Available Title",
"default": "Availability:"
},
{
"type": "text",
"id": "in_stock_title",
"label": "Stock Title",
"default": "In Stock"
},
{
"type": "text",
"id": "out_of_stock_title",
"label": "Stock Title",
"default": "Out Of Stock"
}
]
},
{
"type": "product_price",
"name": "Product price",
"limit": 1
},
{
"type": "product_stock",
"name": "Product stock",
"limit": 1,
"settings": [
{
"type": "text",
"id": "stock_label1",
"label": "Text1",
"default": "Hurry up! only"
},
{
"type": "text",
"id": "stock_label2",
"label": "Text2",
"default": "products left in stock!"
}
]
},
{
"type": "short_description",
"name": "Product short description",
"limit": 1,
"settings": [
{
"type": "header",
"content": "metafields add"
}
]
},
{
"type": "swatch_option",
"name": "Product swatch option",
"limit": 1,
"settings": [
{
"type": "header",
"content": "Product Variant"
},
{
"type": "radio",
"id": "product_variant_handle",
"label": "Variant Option",
"options":[
{
"label": "Select Option",
"value": "product_variant_select_option"
},
{
"label": "Swatch Option",
"value": "product_variant_swatch_option"
},
{
"label": "Without Variant",
"value": "product_variant_without_option"
}
],
"default": "product_variant_swatch_option"
}
]
},
{
"type": "cart_button",
"name": "Product cart button",
"limit": 1,
"settings": [
{
"type": "checkbox",
"id": "qty_box_enable",
"label": "qty box enable",
"default": true
},
{
"type": "text",
"id": "qty_title",
"label": "Qty Title",
"default": "Quntity:"
},
{
"type": "checkbox",
"id": "buy_button_enable",
"label": "buy button enable",
"default": true
},
{
"type": "text",
"id": "buy_now_title",
"label": "Buy Now Direct",
"default": "Buy Now"
}
]
},
{
"type": "product_sku",
"name": "Product sku code",
"limit": 1,
"settings": [
{
"type": "text",
"id": "product_sku_title",
"label": "SKU Title",
"default": "SKU:"
}
]
},
{
"type": "social_icon",
"name": "Social icon",
"limit": 1,
"settings": [
{
"type": "text",
"id": "social_share_title",
"label": "Social Share Title",
"default": "Share:"
}
]
},
{
"type": "payment_img",
"name": "Payment Image",
"limit": 1,
"settings": [
{
"type": "image_picker",
"id": "checkout_img",
"label": "Deal images",
"info": "Recommended Size: 500 x 80px"
}
]
}
]
}
{% endschema %}
.product-details-page {
padding-top: {{ section.settings.section_padding_top }}px;
padding-bottom: {{ section.settings.section_padding_bottom }}px;
}
@media (max-width : 767px){
.product-details-page {
padding-top: 40px;
padding-bottom: 0px;
}
}