Here is the code, can you do me a massive favour and insert it in the correct position?
{% liquid
assign product = block.settings.product
-%}
{% capture children %}
{% content_for âblocksâ, closest.product: product %}
{% endcapture %}
{% render âproduct-cardâ, children: children, product: product %}
{% schema %}
{
ânameâ: ât:names.product_cardâ,
âblocksâ: [
{
"type": "\_product-card-group"
},
{
"type": "text"
},
{
"type": "image"
},
{
"type": "price"
},
{
"type": "review"
},
{
"type": "sku"
},
{
"type": "swatches"
},
{
"type": "\_product-card-gallery"
},
{
"type": "product-title"
},
{
"type": "custom-liquid"
},
{
"type": "@app"
}
],
âtagâ: null,
âsettingsâ: [
{
"type": "product",
"id": "product",
"label": "t:settings.product"
},
{
"type": "range",
"id": "product_card_gap",
"label": "t:settings.vertical_gap",
"min": 0,
"max": 50,
"step": 1,
"unit": "px",
"default": 16
},
{
"type": "checkbox",
"id": "inherit_color_scheme",
"label": "t:settings.inherit_color_scheme",
"default": true
},
{
"type": "color_scheme",
"id": "color_scheme",
"label": "t:settings.color_scheme",
"default": "scheme-1",
"visible_if": "{{ block.settings.inherit_color_scheme == false }}"
},
{
"type": "header",
"content": "t:content.borders"
},
{
"type": "select",
"id": "border",
"label": "t:settings.style",
"options": \[
{
"value": "none",
"label": "t:options.none"
},
{
"value": "solid",
"label": "t:options.solid"
}
\],
"default": "none"
},
{
"type": "range",
"id": "border_width",
"min": 0,
"max": 100,
"step": 1,
"unit": "px",
"label": "t:settings.thickness",
"default": 1,
"visible_if": "{{ block.settings.border != 'none' }}"
},
{
"type": "range",
"id": "border_opacity",
"min": 0,
"max": 100,
"step": 1,
"unit": "%",
"label": "t:settings.opacity",
"default": 100,
"visible_if": "{{ block.settings.border != 'none' }}"
},
{
"type": "range",
"id": "border_radius",
"label": "t:settings.border_radius",
"min": 0,
"max": 32,
"step": 1,
"default": 0
},
{
"type": "header",
"content": "t:content.padding"
},
{
"type": "range",
"id": "padding-block-start",
"label": "t:settings.top",
"min": 0,
"max": 50,
"step": 1,
"unit": "px",
"default": 0
},
{
"type": "range",
"id": "padding-block-end",
"label": "t:settings.bottom",
"min": 0,
"max": 50,
"step": 1,
"unit": "px",
"default": 0
},
{
"type": "range",
"id": "padding-inline-start",
"label": "t:settings.left",
"min": 0,
"max": 50,
"step": 1,
"unit": "px",
"default": 0
},
{
"type": "range",
"id": "padding-inline-end",
"label": "t:settings.right",
"min": 0,
"max": 50,
"step": 1,
"unit": "px",
"default": 0
}
],
âpresetsâ: [
{
"name": "t:names.product_card",
"category": "t:categories.product",
"settings": {
"product_card_gap": 4
},
"blocks": {
"product-card-gallery": {
"type": "\_product-card-gallery",
"settings": {
"image_ratio": "adapt",
"border": "none",
"border_width": 1,
"border_opacity": 100,
"border_radius": 0,
"padding-block-start": 0,
"padding-block-end": 0,
"padding-inline-start": 0,
"padding-inline-end": 0
}
},
"product_title": {
"type": "product-title",
"name": "t:names.product_title",
"settings": {
"width": "fit-content",
"max_width": "normal",
"alignment": "left",
"type_preset": "rte",
"font": "var(--font-body--family)",
"font_size": "1rem",
"line_height": "normal",
"letter_spacing": "normal",
"case": "none",
"wrap": "pretty",
"color": "var(--color-foreground)",
"background": false,
"background_color": "#00000026",
"corner_radius": 0,
"padding-block-start": 4,
"padding-block-end": 0,
"padding-inline-start": 0,
"padding-inline-end": 0
}
},
"price": {
"type": "price",
"name": "t:names.product_price",
"settings": {
"show_sale_price_first": true,
"show_installments": false,
"show_tax_info": false,
"type_preset": "h6",
"width": "100%",
"alignment": "left",
"font": "var(--font-body--family)",
"font_size": "1rem",
"line_height": "normal",
"letter_spacing": "normal",
"case": "none",
"color": "var(--color-foreground)",
"padding-block-start": 0,
"padding-block-end": 0,
"padding-inline-start": 0,
"padding-inline-end": 0
}
}
},
"block_order": \["product-card-gallery", "product_title", "price"\]
}
]
}
{% endschema %}