{%- comment -%} /sections/product-template {%- endcomment -%}
{%- assign bg_color = section.settings.bg_color -%}
{% assign pageurl = content_for_header | split:'"pageurl":"' | last | split:'"' | first %}
{% assign first_variant = product.first_available_variant.id %}
{% if pageurl contains 'variant' %}{% else %}
{%- comment -%} redirect to variant url (includes variant parameter) - this is for the slider {%- endcomment -%}
{% endif %}
{%- if bg_color != 'rgba(0,0,0,0)' and bg_color != '' -%}
{%- style -%}
#ProductTemplate--product-template { background: {{ bg_color }}; }
.shop-pay-terms { --payment-terms-background-color: {{ bg_color }} }
{%- endstyle -%}
{%- endif -%}
Use this text to share information about the point put forth above. Describe a product, your brand, or what makes you special.
" }, { "type": "header", "content": "Button" }, { "type": "text", "id": "button_text", "label": "Text" }, { "type": "url", "id": "button_link", "label": "Link" }, { "type": "select", "id": "button_style", "label": "Style", "default": "primary", "options": [ { "label": "Primary", "value": "primary" }, { "label": "Secondary", "value": "secondary" } ] }, { "type": "header", "content": "Colors" }, { "type": "color", "id": "bg_color", "label": "Background" } ] }, { "name": "Rich text", "type": "rich-text", "settings": [ { "type": "header", "content": "Layout" }, { "type": "select", "id": "text_position", "label": "Text position", "default": "center", "options": [ { "value": "left", "label": "Left" }, { "value": "center", "label": "Center" }, { "value": "right", "label": "Right" } ] }, { "type": "header", "content": "Image" }, { "type": "image_picker", "id": "top_image", "label": "Image" }, { "type": "range", "id": "top_image_width", "label": "Custom image width (in pixels)", "min": 50, "max": 500, "default": 100, "step": 10, "unit": "px" }, { "type": "header", "content": "Text" }, { "type": "text", "id": "heading", "label": "Heading", "default": "Our Story" }, { "type": "richtext", "id": "text", "label": "Text", "default": "Use this text to share information about your brand with your customers. Describe a product, share announcements, or welcome customers to your store.
" }, { "type": "header", "content": "Buttons" }, { "type": "text", "id": "button_text", "label": "Button text", "default": "Learn More" }, { "type": "url", "id": "button_url", "label": "Button link" }, { "type": "select", "id": "button_style", "label": "Button style", "default": "primary", "options": [ { "label": "Primary", "value": "primary" }, { "label": "Secondary", "value": "secondary" } ] }, { "type": "text", "id": "secondary_button_text", "label": "Second button text" }, { "type": "url", "id": "secondary_button_url", "label": "Second button link" }, { "type": "select", "id": "secondary_button_style", "label": "Second button style", "default": "secondary", "options": [ { "label": "Primary", "value": "primary" }, { "label": "Secondary", "value": "secondary" } ] }, { "type": "header", "content": "Colors" }, { "type": "color", "id": "bg_color", "label": "Background" } ] }, { "name": "Image with text", "type": "image-with-text", "settings": [ { "type": "header", "content": "Layout" }, { "type": "select", "id": "section_height", "label": "Height", "default": "sixty-fifty-height-hero", "options": [ { "value": "one-hundred-height-hero", "label": "Full screen" }, { "value": "seven-fifty-height-hero", "label": "750px" }, { "value": "sixty-fifty-height-hero", "label": "650px" }, { "value": "five-fifty-height-hero ", "label": "550px" }, { "value": "four-fifty-height-hero", "label": "450px" } ] }, { "type": "select", "id": "text_position", "label": "Block position", "default": "left", "options": [ { "value": "left", "label": "Left" }, { "value": "right", "label": "Right" } ] }, { "type": "header", "content": "Image" }, { "type": "image_picker", "id": "image", "label": "Image" }, { "type": "checkbox", "id": "image_background", "label": "Set image as a background", "default": false }, { "type": "select", "id": "bg_position", "label": "Position", "default": "center-center", "options": [ { "label": "Top", "value": "center-top" }, { "label": "Right", "value": "right-center" }, { "label": "Center", "value": "center-center" }, { "label": "Left", "value": "left-center" }, { "label": "Bottom", "value": "center-bottom" } ] }, { "type": "header", "content": "Text" }, { "type": "text", "id": "subheading", "label": "Subheading", "default": "Subheading" }, { "type": "text", "id": "heading", "label": "Heading", "default": "Our Story" }, { "type": "richtext", "id": "text", "label": "Text", "default": "Use this text to share information about your brand with your customers. Describe a product, share announcements, or welcome customers to your store.
" }, { "type": "header", "content": "Button" }, { "type": "text", "id": "button_text", "label": "Text", "default": "Learn More" }, { "type": "url", "id": "button_url", "label": "Link" }, { "type": "select", "id": "button_style", "label": "Style", "default": "primary", "options": [ { "label": "Primary", "value": "primary" }, { "label": "Secondary", "value": "secondary" } ] }, { "type": "header", "content": "Video button" }, { "type": "video_url", "id": "video_url", "label": "Link", "accept": ["youtube", "vimeo"] }, { "type": "header", "content": "Colors" }, { "type": "color", "id": "bg_color", "label": "Background" } ] } ] } {% endschema %}