@LitExtension
{%
render 'product-form',
section: section,
product: all_products[section.settings.product],
is_featured_product: true
%}
{% schema %}
{
“name”: “Featured product”,
“class”: “section-featured-product”,
“settings”: [
{
“type”: “product”,
“id”: “product”,
“label”: “Product”
},
{
“type”: “richtext”,
“id”: “description”,
“label”: “Description”,
“default”: “
Pair some text with a product to highlight features.
”
},
{
“type”: “select”,
“id”: “variant_style”,
“default”: “underlined”,
“label”: “Variant display style”,
“options”: [
{
“label”: “Dropdown”,
“value”: “dropdown”
},
{
“label”: “Underlined”,
“value”: “underlined”
}
]
}
,
{
“type”: “select”,
“id”: “cart_type”,
“label”: “When ‘Add to Cart’ is clicked”,
“default”: “”,
“options”: [
{
“value”: “”,
“label”: “Stay on the same page”
},
{
“value”: “add_in_modal”,
“label”: “Open popup with checkout button”
},
{
“value”: “add_in_modal_no_checkout”,
“label”: “Open popup without checkout button”
},
{
“value”: “go_to_cart”,
“label”: “Go to cart page”
}
]
}
,
{
“type”: “checkbox”,
“id”: “description_under_title”,
“label”: “Show the product description under the product title”,
“default”: false
}
,
{
“type”: “checkbox”,
“id”: “show_tax_and_shipping”,
“label”: “Show tax status and shipping policy link”,
“default”: false
}
,
{
“type”: “checkbox”,
“id”: “show_vendor”,
“default”: true,
“label”: “Show product vendor”
}
,
{
“type”: “checkbox”,
“id”: “show_sku”,
“label”: “Show SKU”,
“default”: false
}
,
{
“type”: “checkbox”,
“id”: “show_quantity_selector”,
“default”: true,
“label”: “Show quantity selector”
}
,
{
“type”: “checkbox”,
“id”: “enable_payment_button”,
“label”: “Show dynamic checkout button”,
“info”: “Each customer will see their preferred payment method from those available on your store, such as PayPal or Apple Pay. Learn more”,
“default”: true
}
,
{
“type”: “header”,
“content”: “Inventory”
},
{
“type”: “checkbox”,
“id”: “show_backorder_text”,
“label”: “Show backorder text”,
“default”: true,
“info”: “Only shows for products which use Shopify inventory tracking and are available to purchase when out of stock.”
}
,
{
“type”: “checkbox”,
“id”: “show_inventory_notice”,
“label”: “Show inventory notice”,
“default”: false
}
,
{
“type”: “range”,
“id”: “inventory_notice_threshold”,
“min”: 0,
“max”: 100,
“step”: 1,
“label”: “Inventory threshold”,
“info”: “Show inventory quantities below this threshold. Choose 0 to show full amount.”,
“default”: 10
}
,
{
“type”: “checkbox”,
“id”: “show_realtime_availability”,
“label”: “Cross out unavailable options every time someone changes a variant”,
“info”: “Only applies when the ‘Variant display style’ is Underlined.”,
“default”: true
}
,
{
“type”: “header”,
“content”: “Media”
},
{
“type”: “paragraph”,
“content”: “Learn more about media types”
},
{
“type”: “checkbox”,
“id”: “enable_zoom”,
“default”: true,
“label”: “Enable image zoom”
}
,
{
“type”: “checkbox”,
“id”: “enable_video_looping”,
“label”: “Enable video looping”,
“default”: false
}
,
{
“type”: “select”,
“id”: “slide_nav_style”,
“label”: “Slide navigation style”,
“default”: “dots”,
“options”: [
{
“value”: “dots”,
“label”: “Dots”
},
{
“value”: “arrows”,
“label”: “Arrows”
}
]
}
],
“presets”: [
{
“name”: “Featured product”,
“category”: “Product”,
“settings”: {
}
}
]
}
{% endschema %}