{%- 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 -%}
{%- render 'product' product: product, section: section, enable_payment_button: section.settings.enable_payment_button, unique: section.id -%}
{%- render 'block-sections' -%} {%- render 'product-gallery' -%}
{{product.metafields.stamped.reviews}}
{%- render 'product-qa-section' -%} {% schema %} { "name": "Product pages", "class": "shopify-section--product", "settings": [ { "type": "header", "content": "Layout" }, { "type": "checkbox", "id": "show_breadcrumbs", "label": "Show breadcrumbs", "default": true }, { "type": "select", "id": "layout_media", "label": "Layout media product", "options": [ { "value": "slide", "label": "Slide media" }, { "value": "grid", "label": "Grid media" } ], "default": "slide", "info": "Working in product page" }, { "type": "select", "id": "image_gallery", "label": "Image gallery", "options": [ { "value": "none", "label": "None" }, { "value": "zoom", "label": "Hover to zoom" }, { "value": "lightbox", "label": "Lightbox" } ], "default": "zoom" }, { "type": "checkbox", "id": "enable_social_sharing_products", "label": "Show social sharing buttons", "default": true }, { "type": "checkbox", "id": "show_vendor", "label": "Show vendor", "default": false }, { "type": "checkbox", "id": "enable_payment_button", "label": "Show dynamic checkout button", "info": "Lets customers check out directly using a familiar payment method. [Learn more](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)", "default": true }, { "type": "checkbox", "id": "enable_store_availability", "label": "Show local pickup availability", "info": "Show customers where they can pick up the product. [Learn more](https://help.shopify.com/en/manual/shipping/setting-up-and-managing-your-shipping/local-methods/local-pickup#show-pickup-availability-to-your-customers)", "default": false }, { "type": "header", "content": "Tabs" }, { "type": "checkbox", "id": "enable_tabs_h6", "label": "Enable description H6", "info": "Heading 6 titles will be converted to tab headings, tab content will be everything between the Heading 6 titles. [Product Tabs Documentation](https://palo-alto.helpscoutdocs.com/article/181-how-to-set-up-global-and-unique-product-tabs).", "default": false }, { "type": "paragraph", "content": "You have the option to enable three extra tabs for more information on your product." }, { "type": "page", "id": "page_tab_1", "label": "Tab one" }, { "type": "page", "id": "page_tab_2", "label": "Tab two" }, { "type": "page", "id": "page_tab_3", "label": "Tab three" }, { "type": "header", "content": "Media", "info": "Learn more about [media types](https://help.shopify.com/manual/products/product-media)" }, { "type": "checkbox", "id": "enable_video_looping", "label": "Enable video looping", "default": false }, { "type": "header", "content": "Colors" }, { "type": "color", "id": "bg_color", "label": "Background" }, { "type": "header", "content": "Gallery product" }, { "type": "text", "id": "header_gallery", "label": "Header", "default": "Gallery" }, { "type": "range", "id": "limit_gallery", "min": 2, "max": 5, "step": 1, "label": "Limit gallery desktop", "default": 5 }, { "type": "text", "id": "qa_title", "label": "Product QA Title", "default": "Product Q&A" } ], "blocks": [ { "name": "Banner", "type": "banner", "limit": 2, "settings": [ { "type": "header", "content": "Layout" }, { "type": "select", "id": "height", "label": "Height", "options": [ { "value": "one-hundred", "label": "Full screen" }, { "value": "original-height", "label": "Original" }, { "value": "big", "label": "750px" }, { "value": "normal", "label": "650px" }, { "value": "small", "label": "550px" } ], "default": "normal" }, { "type": "select", "id": "text_position", "label": "Content alignment", "default": "center", "options": [ { "label": "Left", "value": "left" }, { "label": "Center", "value": "center" }, { "label": "Right", "value": "right" }, { "label": "Bottom left", "value": "bottom-left" }, { "label": "Bottom right", "value": "bottom-right" } ] }, { "type": "header", "content": "Image" }, { "type": "image_picker", "id": "image", "label": "Image" }, { "type": "range", "id": "overlay_opacity", "label": "Overlay opacity", "step": 5, "max": 95, "min": 0, "unit": "%", "default": 20 }, { "type": "header", "content": "Text" }, { "type": "select", "id": "text_color", "label": "Color", "default": "text-light", "options": [ { "value": "text-light", "label": "Light" }, { "value": "text-dark", "label": "Dark" } ] }, { "type": "text", "id": "subheading", "label": "Subheading" }, { "type": "text", "id": "title", "label": "Heading", "default": "Welcome to Palo Alto" }, { "type": "textarea", "id": "text", "label": "Text", "default": "A unique layout with a striking design" } ] }, { "name": "Product feature", "type": "product-feature", "settings": [ { "type": "header", "content": "Layout" }, { "type": "select", "id": "image_layout", "label": "Image layout", "default": "square", "options": [ { "label": "Square", "value": "square" }, { "label": "Portrait", "value": "portrait" } ] }, { "type": "select", "id": "image_position", "label": "Image position", "info": "Affects the second image in this section.", "default": "inline", "options": [ { "label": "Inline", "value": "inline" }, { "label": "Overlapping", "value": "overlapping" } ] }, { "type": "select", "id": "text_position", "label": "Text position", "default": "right", "options": [ { "label": "Right", "value": "right" }, { "label": "Left", "value": "left" } ] }, { "type": "select", "id": "text_alignment", "label": "Text alignment", "default": "center", "options": [ { "label": "Center", "value": "center" }, { "label": "Left", "value": "left" } ] }, { "type": "header", "content": "Images" }, { "type": "image_picker", "id": "image_1", "label": "Image" }, { "type": "url", "id": "image_link_1", "label": "Image link" }, { "type": "image_picker", "id": "image_2", "label": "Second image" }, { "type": "url", "id": "image_link_2", "label": "Second image link" }, { "type": "checkbox", "id": "hide_image_2", "label": "Hide on mobile", "default": false }, { "type": "header", "content": "Text" }, { "type": "textarea", "id": "heading", "label": "Heading", "default": "This is a heading for a Product feature block." }, { "type": "richtext", "id": "description", "label": "Description", "default": "

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 %}