{%- liquid assign current_variant = product.selected_or_first_available_variant assign enable_video_looping = section.settings.enable_video_looping assign image_size = section.settings.image_size assign image_layout = section.settings.image_layout assign mobile_image_style = section.settings.mobile_image_style assign featured_media = current_variant.featured_media | default: product.featured_media assign featured_media_aspect_ratio = featured_media.aspect_ratio | default: 1 assign is_title_linked = true if template.name == 'product' assign is_title_linked = false endif assign show_thumbnails = false assign enable_thumbs = false assign enable_thumbs_mobile = false if image_layout == 'thumbnails' or image_layout == 'thumbnails-left' assign enable_thumbs = true assign show_thumbnails = true endif if mobile_image_style == 'thumbs' assign show_thumbnails = true assign enable_thumbs_mobile = true endif assign modifier = image_layout | default: 'thumbnails' assign product_wrapper_modifier = 'product__wrapper--' | append: modifier assign show_buy_buttons = false assign buy_buttons = section.blocks | where: 'type', 'buttons' if buy_buttons.size > 0 assign show_buy_buttons = true endif assign image_width = 770 if image_size == 'small' assign product_wrapper_modifier = product_wrapper_modifier | append: ' product__wrapper--small' assign image_width = 525 endif if image_size == 'stretch' assign product_wrapper_modifier = product_wrapper_modifier | append: ' product__wrapper--stretch' assign image_width = 970 endif assign product_form_id = 'ProductForm--' | append: section.id | append: '-' | append: product.id assign show_cart_bar = false assign unique = section.id assign sibling_color = product.metafields.theme.sibling_color.value | default: product.metafields.theme.sibling_colour.value | default: product.metafields.theme.siblings_color.value | default: product.metafields.theme.siblings_colour.value | default: product.metafields.theme.siblings_colors.value | default: product.metafields.theme.siblings_colours.value if section.settings.show_cart_bar assign show_cart_bar = true endif capture product_images_classlist echo 'product__images' if enable_thumbs echo ' product__images--thumbs' else echo ' product__images--no-thumbs' endif if enable_thumbs_mobile echo ' product__images--mobile-thumbs' else echo ' product__images--mobile-slider' endif endcapture assign preorder = false if product.metafields.theme.preorder.type == 'boolean' and product.metafields.theme.preorder.value == true assign preorder = true endif assign sold_out = false unless product.available assign sold_out = true endunless assign product_tags = product.tags | join: ',' if product_tags contains '_preorder' assign preorder = true endif assign product_price = product.metafields.app--168074346497.min_auto_discounted_price.value | default: product.price assign product_compare_at_price = product.compare_at_price assign product_compare_at_price_max = product.compare_at_price_max if product.metafields.app--168074346497.discount_percentage.value > 0.01 assign deducted_percentage = 1.0 | minus: product.metafields.app--168074346497.discount_percentage.value assign product_price = product.price | divided_by: 100.0 | times: deducted_percentage | times: 100.0 | ceil assign product_compare_at_price = product.price assign product_compare_at_price_max = product.price_max if product.compare_at_price > product_compare_at_price assign product_compare_at_price = product.compare_at_price endif if product.compare_at_price_max > product_compare_at_price_max assign product_compare_at_price_max = product.compare_at_price_max endif endif assign on_sale = false if product_compare_at_price > product_price assign on_sale = true endif assign badge = '' if badge == '' and product_tags contains '_badge_' assign badge = product_tags | split: '_badge_' assign badge = badge[1] | split: ',' | first | replace: '_', ' ' endif -%} {%- style -%} {%- if show_cart_bar -%} :root { --cart-bar-height: 80px; } {%- endif -%} #Product--{{ section.id }} { --PT: {{ section.settings.padding_top }}px; --PB: {{ section.settings.padding_bottom }}px; --swatch-size: var(--swatch-size-product); } {%- endstyle -%}
This content type will accept rich text to help with adding styles and links to additional pages or content. Use this to add supplementary information to help your buyers.
" }, { "type": "text", "id": "title_2", "label": "Tab heading", "default": "Info" }, { "type": "richtext", "id": "raw_content_2", "label": "Tab text", "default": "You can use product metafields to assign content to this tab that is unique to an individual product. Use tabs to highlight unique features, sizing information, or other sales information.
" }, { "type": "text", "id": "title_3", "label": "Tab heading" }, { "type": "richtext", "id": "raw_content_3", "label": "Tab text" }, { "type": "text", "id": "title_4", "label": "Tab heading" }, { "type": "richtext", "id": "raw_content_4", "label": "Tab text" }, { "type": "text", "id": "title_5", "label": "Tab heading" }, { "type": "richtext", "id": "raw_content_5", "label": "Tab text" }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 0 } ] }, { "type": "accordion", "name": "Accordion", "settings": [ { "type": "checkbox", "id": "show_description", "label": "Show description", "default": false }, { "type": "checkbox", "id": "show_read_more", "label": "Show read more button", "default": true }, { "type": "checkbox", "id": "default_open", "label": "Open by default", "default": false }, { "type": "text", "id": "heading", "label": "Heading", "default": "Accordion" }, { "type": "richtext", "id": "text", "label": "Text", "default": "This content type will accept rich text to help with adding styles and links to additional pages or content. Use this to add supplementary information to help your buyers.
" }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 0 } ] }, { "type": "upsell", "name": "Upsell", "limit": 1, "settings": [ { "type": "product", "id": "upsell_product", "label": "Single product" }, { "type": "product_list", "id": "upsell_product_list", "label": "Product list", "limit": 3, "info": "Choose up to 3 upsell products" }, { "type": "checkbox", "id": "show_avaialable_upsell_only", "label": "Show only items in stock", "default": false }, { "type": "header", "content": "Cart" }, { "type": "paragraph", "content": "Use a dynamic source with the metafield 'theme.upsell' for single product or 'theme.upsell_list' for product list to allow product upsells to follow users into the cart. Use any other name to limit this feature to the product page. [Learn more](https://broadcast.invisiblethemes.com/products/upselling)" }, { "type": "header", "content": "Colors" }, { "type": "color", "id": "bg_color", "label": "Background" }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 16 } ] }, { "type": "inventory_countdown", "name": "Inventory countdown", "limit": 1, "settings": [ { "type": "select", "id": "show_notice", "label": "Show notice", "default": "low-inventory", "options": [ { "label": "Always", "value": "always" }, { "label": "Low inventory", "value": "low-inventory" } ] }, { "type": "range", "id": "max_inventory", "label": "Low inventory threshold", "min": 1, "max": 50, "step": 1, "default": 10 }, { "type": "checkbox", "id": "hide_inventory_counter", "label": "Hide inventory counter", "default": true }, { "type": "range", "id": "icon_size", "label": "Icon size", "unit": "px", "min": 20, "max": 80, "step": 5, "default": 20 }, { "type": "header", "content": "Colors" }, { "type": "color", "id": "in_stock_color", "label": "In stock", "default": "#56AD6A" }, { "type": "color", "id": "low_stock_color", "label": "Low stock", "default": "#f79554" }, { "type": "color", "id": "out_of_stock_color", "label": "Out of stock", "default": "#721C24" }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 16 } ] }, { "type": "sharing", "name": "Sharing", "limit": 1, "settings": [ { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 16 } ] }, { "type": "pickup", "name": "Local pickup", "limit": 1, "settings": [ { "type": "paragraph", "content": "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)" }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 32 } ] }, { "type": "text", "name": "Text", "settings": [ { "type": "text", "id": "title", "label": "Heading", "default": "Have questions?" }, { "type": "richtext", "id": "text", "label": "Text", "default": "Get in touch with us at any time.
" }, { "type": "select", "id": "layout", "label": "Layout", "options": [ { "value": "left", "label": "Left" }, { "value": "inline", "label": "In-line" } ], "default": "left" }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 16 } ] }, { "type": "code", "name": "Custom code", "settings": [ { "type": "liquid", "id": "code", "label": "Custom code", "info": "Add app snippets or other Liquid code to create advanced customizations." }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 16 } ] }, { "type": "icon", "name": "Icon", "settings": [ { "type": "select", "id": "icon_name", "label": "Icon", "default": "icon-award", "options": [ { "label": "Award", "value": "icon-award" }, { "label": "Box", "value": "icon-box" }, { "label": "Chat", "value": "icon-chat" }, { "label": "Cloud", "value": "icon-cloud" }, { "label": "Diameter", "value": "icon-diameter" }, { "label": "Discount", "value": "icon-discount" }, { "label": "Donation", "value": "icon-donation" }, { "label": "Droplet", "value": "icon-droplet" }, { "label": "Info", "value": "icon-info-empty" }, { "label": "Email", "value": "icon-email" }, { "label": "Fast shipment", "value": "icon-fast-shipment" }, { "label": "Flare", "value": "icon-flare" }, { "label": "Flower", "value": "icon-flower" }, { "label": "Gift", "value": "icon-gift" }, { "label": "Green shipment", "value": "icon-green-shipment" }, { "label": "Heart", "value": "icon-heart" }, { "label": "Leaf", "value": "icon-leaf" }, { "label": "Lightning", "value": "icon-lightning" }, { "label": "Location", "value": "icon-location" }, { "label": "Mail", "value": "icon-mail" }, { "label": "Notes", "value": "icon-notes" }, { "label": "Pants", "value": "icon-pants" }, { "label": "Peace", "value": "icon-peace" }, { "label": "Pin", "value": "icon-pin" }, { "label": "Planet", "value": "icon-planet" }, { "label": "Phone", "value": "icon-phone" }, { "label": "Recycle", "value": "icon-recycle" }, { "label": "Ruler", "value": "icon-ruler" }, { "label": "Shield", "value": "icon-shield" }, { "label": "Smile", "value": "icon-smile" }, { "label": "Star", "value": "icon-star" }, { "label": "Tree", "value": "icon-tree" }, { "label": "Trophy", "value": "icon-trophy" }, { "label": "Truck", "value": "icon-truck" }, { "label": "Vegan", "value": "icon-vegan" }, { "label": "Wash", "value": "icon-wash" }, { "label": "Washing machine", "value": "icon-washing-machine" } ] }, { "type": "image_picker", "id": "image", "label": "Alternative icon/image" }, { "type": "range", "id": "icon_size", "label": "Size", "unit": "px", "min": 20, "max": 80, "step": 5, "default": 20 }, { "type": "color", "id": "icon_color", "label": "Icon color", "default": "#545454" }, { "type": "text", "id": "title", "label": "Heading", "default": "Title" }, { "type": "range", "id": "text_size", "label": "Text size", "min": 1, "max": 15, "step": 1, "default": 3 }, { "type": "header", "content": "Layout" }, { "type": "select", "id": "width", "label": "Width", "default": "full", "options": [ { "label": "Full width", "value": "full" }, { "label": "Half", "value": "half" }, { "label": "One third", "value": "third" }, { "label": "One quarter", "value": "quarter" } ] }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 16 } ] }, { "type": "divider", "name": "Divider", "settings": [ { "type": "checkbox", "id": "show_line", "label": "Show line", "default": true }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 1, "unit": "px", "label": "Padding bottom", "default": 20 } ] }, { "type": "line-item", "name": "Line item property", "settings": [ { "type": "text", "id": "label", "label": "Label", "default": "Your label" }, { "type": "select", "id": "type", "label": "Type", "default": "text", "options": [ { "label": "Text", "value": "text" }, { "label": "Checkbox", "value": "checkbox" }, { "label": "Dropdown", "value": "dropdown" } ] }, { "type": "header", "content": "Text", "info": "For Type set to \"Text\"." }, { "type": "checkbox", "id": "required", "label": "Required", "default": true }, { "type": "header", "content": "Checkbox", "info": "For Type set to \"Checkbox\"." }, { "type": "text", "id": "checked_value", "label": "Checked value", "default": "Yes" }, { "type": "text", "id": "unchecked_value", "label": "Unchecked value", "default": "No" }, { "type": "header", "content": "Dropdown", "info": "For Type set to \"Dropdown\"." }, { "type": "text", "id": "option_1", "label": "Option 1", "default": "Option 1" }, { "type": "text", "id": "option_2", "label": "Option 2", "default": "Option 2" }, { "type": "text", "id": "option_3", "label": "Option 3", "default": "Option 3" }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 16 } ] }, { "type": "features", "name": "Feature", "settings": [ { "type": "select", "id": "icon_name", "label": "Icon", "default": "icon-award", "options": [ { "label": "Award", "value": "icon-award" }, { "label": "Box", "value": "icon-box" }, { "label": "Chat", "value": "icon-chat" }, { "label": "Cloud", "value": "icon-cloud" }, { "label": "Diameter", "value": "icon-diameter" }, { "label": "Discount", "value": "icon-discount" }, { "label": "Donation", "value": "icon-donation" }, { "label": "Droplet", "value": "icon-droplet" }, { "label": "Info", "value": "icon-info-empty" }, { "label": "Email", "value": "icon-email" }, { "label": "Fast shipment", "value": "icon-fast-shipment" }, { "label": "Flare", "value": "icon-flare" }, { "label": "Flower", "value": "icon-flower" }, { "label": "Gift", "value": "icon-gift" }, { "label": "Green shipment", "value": "icon-green-shipment" }, { "label": "Heart", "value": "icon-heart" }, { "label": "Leaf", "value": "icon-leaf" }, { "label": "Lightning", "value": "icon-lightning" }, { "label": "Location", "value": "icon-location" }, { "label": "Mail", "value": "icon-mail" }, { "label": "Notes", "value": "icon-notes" }, { "label": "Pants", "value": "icon-pants" }, { "label": "Peace", "value": "icon-peace" }, { "label": "Pin", "value": "icon-pin" }, { "label": "Planet", "value": "icon-planet" }, { "label": "Phone", "value": "icon-phone" }, { "label": "Recycle", "value": "icon-recycle" }, { "label": "Ruler", "value": "icon-ruler" }, { "label": "Shield", "value": "icon-shield" }, { "label": "Smile", "value": "icon-smile" }, { "label": "Star", "value": "icon-star" }, { "label": "Tree", "value": "icon-tree" }, { "label": "Trophy", "value": "icon-trophy" }, { "label": "Truck", "value": "icon-truck" }, { "label": "Vegan", "value": "icon-vegan" }, { "label": "Wash", "value": "icon-wash" }, { "label": "Washing machine", "value": "icon-washing-machine" } ] }, { "type": "image_picker", "id": "icon_alt", "label": "Alternative icon/image" }, { "type": "range", "id": "icon_size", "label": "Size", "unit": "px", "min": 20, "max": 80, "step": 5, "default": 20 }, { "type": "text", "id": "title", "label": "Heading", "default": "Feature" }, { "type": "range", "id": "text_size", "label": "Text size", "min": 1, "max": 15, "step": 1, "default": 3 }, { "type": "richtext", "id": "text", "label": "Text", "default": "This content type will accept rich text to help with adding styles and links to additional pages or content. Use this to add supplementary information to help your buyers.
" }, { "type": "header", "content": "Colors" }, { "id": "bg_color", "type": "color", "label": "Background", "default": "#F7F9FA" }, { "type": "color", "id": "color", "label": "Text", "default": "#212121" }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding", "default": 16 } ] }, { "type": "complementary-products", "name": "Complementary products", "limit": 1, "settings": [ { "type": "paragraph", "content": "To select complementary products, add the Search & Discovery app. [Learn more](https://help.shopify.com/manual/online-store/search-and-discovery/product-recommendations)" }, { "type": "range", "id": "complementary_limit", "min": 1, "max": 3, "step": 1, "label": "Number of products", "default": 3 }, { "type": "header", "content": "Colors" }, { "type": "color", "id": "bg_color", "label": "Background" }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 16 } ] }, { "type": "popup", "name": "Popup", "settings": [ { "type": "text", "id": "title", "label": "Link text", "default": "Popup text" }, { "type": "richtext", "id": "text", "label": "Text", "default": "Additonal information about the product.
" }, { "type": "page", "id": "page", "label": "Page" }, { "type": "select", "id": "icon_name", "label": "Icon", "default": "icon-award", "options": [ { "label": "Award", "value": "icon-award" }, { "label": "Box", "value": "icon-box" }, { "label": "Chat", "value": "icon-chat" }, { "label": "Cloud", "value": "icon-cloud" }, { "label": "Diameter", "value": "icon-diameter" }, { "label": "Discount", "value": "icon-discount" }, { "label": "Donation", "value": "icon-donation" }, { "label": "Droplet", "value": "icon-droplet" }, { "label": "Info", "value": "icon-info-empty" }, { "label": "Email", "value": "icon-email" }, { "label": "Fast shipment", "value": "icon-fast-shipment" }, { "label": "Flare", "value": "icon-flare" }, { "label": "Flower", "value": "icon-flower" }, { "label": "Gift", "value": "icon-gift" }, { "label": "Green shipment", "value": "icon-green-shipment" }, { "label": "Heart", "value": "icon-heart" }, { "label": "Leaf", "value": "icon-leaf" }, { "label": "Lightning", "value": "icon-lightning" }, { "label": "Location", "value": "icon-location" }, { "label": "Mail", "value": "icon-mail" }, { "label": "Notes", "value": "icon-notes" }, { "label": "Pants", "value": "icon-pants" }, { "label": "Peace", "value": "icon-peace" }, { "label": "Pin", "value": "icon-pin" }, { "label": "Planet", "value": "icon-planet" }, { "label": "Phone", "value": "icon-phone" }, { "label": "Recycle", "value": "icon-recycle" }, { "label": "Ruler", "value": "icon-ruler" }, { "label": "Shield", "value": "icon-shield" }, { "label": "Smile", "value": "icon-smile" }, { "label": "Star", "value": "icon-star" }, { "label": "Tree", "value": "icon-tree" }, { "label": "Trophy", "value": "icon-trophy" }, { "label": "Truck", "value": "icon-truck" }, { "label": "Vegan", "value": "icon-vegan" }, { "label": "Wash", "value": "icon-wash" }, { "label": "Washing machine", "value": "icon-washing-machine" } ] }, { "type": "image_picker", "id": "image", "label": "Alternative icon/image" }, { "type": "range", "id": "icon_size", "label": "Size", "unit": "px", "min": 20, "max": 80, "step": 5, "default": 20 }, { "type": "color", "id": "icon_color", "label": "Icon color", "default": "#545454" }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 16 } ] }, { "type": "badges", "name": "Badges", "settings": [ { "type": "checkbox", "id": "sale_badge", "label": "Show sale badges", "default": true }, { "type": "checkbox", "id": "product_badges", "label": "Show product badges", "info": "Add tag '_preorder' or '_badge_with_custom_text' to a product in order to show the badge", "default": true }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 8 } ] }, { "type": "sku", "name": "SKU", "limit": 1, "settings": [ { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 16 } ] }, { "type": "fit-guide", "name": "Fit guide", "settings": [ { "type": "text", "id": "heading", "label": "Heading", "default": "Fit" }, { "type": "text", "id": "selected_segment", "label": "Active segment", "default": "4", "info": "Enter a number from 1 - 5 to show active fit. Use a metafield for a custom fit per product." }, { "type": "text", "id": "left_label", "label": "Left label", "default": "Small" }, { "type": "text", "id": "middle_label", "label": "Middle label", "default": "True to size" }, { "type": "text", "id": "right_label", "label": "Right label", "default": "Large" }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 8 } ] }, { "type": "countdown", "name": "Countdown timer", "settings": [ { "type": "text", "id": "end_date", "label": "End date", "placeholder": "2023-12-31 23:59", "default": "2024-12-31", "info": "Use format \"YYYY-MM-DD\". Expiration date is based on the [store primary timezone](/admin/settings/general)." }, { "type": "text", "id": "end_time", "label": "End time", "default": "11:59", "placeholder": "11:59", "info": "Use 12-hour time convention in format \"HH:MM\"" }, { "type": "radio", "id": "period", "label": "AM/PM", "options": [ { "value": "am", "label": "AM" }, { "value": "pm", "label": "PM" } ], "default": "am" }, { "type": "richtext", "id": "end_message", "label": "End of timer message", "default": "Offer has expired
" }, { "type": "checkbox", "id": "hide_on_complete", "label": "Hide block after end of timer", "default": true }, { "type": "range", "id": "text_size", "label": "Digits size", "min": 1, "max": 15, "step": 1, "default": 6 }, { "type": "richtext", "id": "text", "label": "Text", "default": "Limited time offer
" }, { "type": "range", "id": "heading_size", "label": "Heading size", "min": 1, "max": 15, "step": 1, "default": 2 }, { "type": "header", "content": "Colors" }, { "type": "color", "id": "bg_color", "label": "Background", "default": "#F7F9FA" }, { "type": "color", "id": "color", "label": "Text" }, { "type": "header", "content": "Layout" }, { "type": "select", "id": "text_align", "label": "Text alignment", "default": "text-center", "options": [ { "value": "text-left","label": "Left" }, { "value": "text-center","label": "Centered" } ] }, { "type": "header", "content": "Block spacing" }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 50, "step": 2, "unit": "px", "label": "Padding bottom", "default": 16 } ] } ] } {% endschema %}