product input error in schema

product input error in schema

taxak
Shopify Partner
10 0 3

getting error by two product inputs in schema in one block

{% schema %}
{
"name": "image",
"target": "section",
"settings": [

{ "type": "image_picker", "id": "image", "label": "Image" }, { "type" : "product", "id" : "product", "label" : "Select Product " }, { "type" : "product", "id" : "product2", "label" : "Select Product " } ]

}
{% endschema %}

Reply 1 (1)

Liam
Shopify Staff
2873 312 821

Hi Taxak,

 

What is the exact error you're seeing and what is the use case you're trying to achieve. I've tested out adding multiple blocks with `"type": "product"` to a theme custom section and I'm not seeing any errors on my side. 

 

Hope this helps!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog