I write a new section liquid with following code:
{% schema %}
{
“name”: “Product Tabs”,
“class”: “product-tabs”,
“tag”: “section”,
“settings”:
…
}
{% endschema %}
And I tried to add it into the product.json with following code but it turned back with error: “Invalid value for type in block ‘product_tabs’. Type must be defined in schema.” How should I fix it? I want to add it into the section UI. Thank you!
{
“sections”: {
“main”: {
// … existing main section content …
“blocks”: {
// … existing blocks …
“product_tabs”: {
“type”: “product-tabs”,
“settings”: {},
},
// … rest of the blocks …
},
“block_order”: [
// … block order …
“product_tabs”
],
// … rest of the main section settings …
},
// … other sections …
},
“order”: [
// … section order …
]
}