I am trying to create unique accordions for my product page with the Sense theme so that each product has its own unique accordions. I am not sure if this is the best way to do it, it might not be. However the way I am trying to achieve this is by creating metafields for each product with an accordion title and description and visibility. The visibility metafield is of type “True or False”.
However I noticed, that the checkbox I created does not have a dynamic source button. Is this because Shopify doesn’t support checkboxes with dynamic sources?
I tried to add a simple checkbox setting schema:
{
"type": "checkbox",
"id": "show_accordion",
"label": "Show collapsible row",
"default": true,
"info": "Check this to show the accordion"
},
Here I add the if statement so it only shows the accordion if the Show accordion setting is enabled.
{% if block.settings.show_accordion %}
{% endif %}

