Section
Product
0 个模板实例,6 个 section 配置,11 类 block。
真实模板变体
当前模板未直接使用该 section。
Schema
{
"name": "Product",
"tag": "section",
"class": "product-section",
"settings": [
{
"type": "checkbox",
"id": "show_taxes_included",
"default": true,
"label": "Show tax and shipping information",
"info": "Tax and shipping information will be displayed if [taxes are included in the price](https://help.shopify.com/en/manual/taxes/location#include-taxes-in-product-prices) or [shipping policy](https://help.shopify.com/en/manual/checkout-settings/refund-privacy-tos#add-or-generate-store-policies) is added"
},
{
"type": "header",
"content": "Media"
},
{
"type": "paragraph",
"content": "Learn more about [media types](https://help.shopify.com/en/manual/products/product-media)"
},
{
"type": "select",
"id": "media_aspect_ratio",
"options": [
{
"value": "adapt",
"label": "Adapt to image"
},
{
"value": "square",
"label": "Square"
},
{
"value": "portrait",
"label": "Portrait"
},
{
"value": "landscape",
"label": "Landscape"
}
],
"default": "adapt",
"label": "Image ratio"
},
{
"type": "checkbox",
"id": "hide_variants",
"default": false,
"label": "Hide unselected variants’ media",
"info": "Media for the unselected variants will be hidden."
},
{
"type": "textarea",
"id": "shipping_text",
"label": "Shipping text"
}
],
"blocks": [
{
"type": "@app",
"settings": []
},
{
"type": "text",
"name": "Text",
"settings": [
{
"type": "text",
"id": "text",
"default": "Text block",
"label": "Text"
},
{
"type": "select",
"id": "text_style",
"options": [
{
"value": "style_body",
"label": "Body"
},
{
"value": "subheading",
"label": "Subheading"
},
{
"value": "style_vendor",
"label": "Vendor"
}
],
"default": "style_vendor",
"label": "Text Style"
}
]
},
{
"type": "title",
"name": "Title",
"limit": 1,
"settings": [
{
"type": "checkbox",
"id": "uppercase",
"default": true,
"label": "Make title uppercase"
},
{
"type": "checkbox",
"id": "show_products_rating",
"default": true,
"label": "Show product rating",
"info": "To display a rating, add a product rating app. [Learn more](https://help.shopify.com/manual/online-store/themes/os20/themes-by-shopify/dawn/sections#featured-collection-show-product-rating)"
}
]
},
{
"type": "inventory_level",
"name": "Inventory level",
"limit": 1,
"settings": [
{
"type": "select",
"id": "show_inventory_notice",
"options": [
{
"value": "always",
"label": "Always"
},
{
"value": "low",
"label": "Only when inventory low"
}
],
"default": "always",
"label": "Show inventory notice"
},
{
"type": "select",
"id": "show_inventory_count",
"options": [
{
"value": "never",
"label": "Never"
},
{
"value": "always",
"label": "Always"
},
{
"value": "low",
"label": "Only when inventory low"
}
],
"default": "always",
"label": "Show count in inventory notice"
},
{
"type": "checkbox",
"id": "inventory_notice_pulse",
"default": true,
"label": "Show pulse"
},
{
"type": "checkbox",
"id": "inventory_notice_bar",
"default": true,
"label": "Show progress bar"
},
{
"type": "number",
"id": "inventory_notice_threshold",
"label": "Low inventory threshold",
"default": 10,
"info": "Set the product inventory quantity to alert customers when limited quantities are available. Insert a dynamic source to set different thresholds for multiple products."
},
{
"type": "number",
"id": "inventory_notice_base",
"label": "Inventory base quantity",
"default": 20,
"info": "Enter the initial quantity of your product inventory for progress bar. Insert a dynamic source to set different base quantities for multiple products"
}
]
},
{
"type": "variant_picker",
"name": "Variant picker",
"limit": 1,
"settings": [
{
"type": "select",
"id": "picker_type",
"options": [
{
"value": "dropdown",
"label": "Dropdown"
},
{
"value": "button",
"label": "Block"
}
],
"default": "button",
"label": "Type"
},
{
"type": "checkbox",
"id": "color_picker",
"default": true,
"label": "Enable color swatches"
},
{
"type": "checkbox",
"id": "force_color_picker",
"default": false,
"label": "Force color swatches for all options",
"info": "When enabled, all variant options will display as color swatches regardless of option name."
},
{
"type": "checkbox",
"id": "variant_is_disabled",
"default": true,
"label": "Show availability in selectors",
"info": "When an option is selected, unavailable variants will be crossed-out."
}
]
},
{
"type": "buy_buttons",
"name": "Buy buttons",
"limit": 1,
"settings": [
{
"type": "checkbox",
"id": "show_quantity_selector",
"default": true,
"label": "Show quantity selector"
},
{
"type": "checkbox",
"id": "show_dynamic_checkout",
"default": true,
"label": "Show dynamic checkout buttons",
"info": "Using the payment methods available on your store, customers see their preferred option, like PayPal or Apple Pay. [Learn more](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)"
}
]
},
{
"type": "description",
"name": "Description",
"limit": 1,
"settings": []
},
{
"type": "custom_liquid",
"name": "Custom liquid",
"settings": [
{
"type": "liquid",
"id": "custom_liquid",
"label": "Custom liquid",
"info": "Add app snippets or other Liquid code to create advanced customizations."
}
]
},
{
"type": "product_link",
"name": "Product link",
"settings": [
{
"type": "paragraph",
"content": "Use this to direct users to product page"
}
]
},
{
"type": "custom_option",
"name": "Line item property",
"settings": [
{
"type": "paragraph",
"content": "Line item properties are used to collect customization information for an item added to the cart."
},
{
"type": "select",
"id": "type",
"label": "Type",
"default": "text",
"options": [
{
"label": "Text",
"value": "text"
},
{
"label": "Textarea",
"value": "textarea"
},
{
"label": "Checkbox",
"value": "checkbox"
},
{
"label": "Multiple options",
"value": "multiple"
}
]
},
{
"type": "text",
"id": "label",
"label": "Label",
"default": "Custom option"
},
{
"type": "checkbox",
"id": "text_required",
"label": "Required",
"info": "Only works with 'Add to cart' button",
"default": false
},
{
"type": "header",
"content": "Text",
"info": "Requires line item property type to be Text or Textarea."
},
{
"type": "text",
"id": "text_placeholder",
"label": "Placeholder",
"default": "Enter your text here"
},
{
"type": "header",
"content": "Checkbox",
"info": "Requires line item property type to be Checkbox."
},
{
"type": "text",
"id": "checkbox_checked_value",
"label": "Checked value",
"default": "Yes"
},
{
"type": "text",
"id": "checkbox_unchecked_value",
"label": "Unchecked value",
"default": "No"
},
{
"type": "header",
"content": "Multiple options",
"info": "Requires line item property type to be Multiple options."
},
{
"type": "select",
"id": "multiple_style",
"label": "Style",
"default": "dropdown",
"options": [
{
"label": "Dropdown",
"value": "dropdown"
},
{
"label": "Radio",
"value": "radio"
}
]
},
{
"type": "textarea",
"id": "multiple_options",
"label": "Options",
"default": "Option 1\nOption 2\nOption 3",
"info": "One option on each line"
}
]
},
{
"type": "sku",
"name": "SKU",
"settings": [
{
"type": "select",
"id": "sku_style",
"options": [
{
"value": "style_body",
"label": "Body"
},
{
"value": "subheading",
"label": "Subheading"
},
{
"value": "style_vendor",
"label": "Vendor"
}
],
"default": "style_vendor",
"label": "SKU style"
}
]
}
],
"presets": []
}