For some reason when I select a variant the image does not change.
You can check it at this url - https://dotewellness.com/products/power
I attach my main-product.liquid in case you can help me.
Show More
{%- assign product_form_id = 'product-form-' | append: section.id -%}
{%- for media in product.media -%} {%- unless media.id == product.selected_or_first_available_variant.featured_media.id -%}- {%- endunless -%} {%- endfor -%}
{%- for media in product.media -%} {%- unless media.id == product.selected_or_first_available_variant.featured_media.id -%}- {%- endunless -%} {%- endfor -%}
# {{ product.title }}## {{ product.metafields.descriptors.subtitle }}{% if section.settings.show_covid_disclaimer and section.settings.show_covid_before == true %} {% render 'covid-disclaimer', disclaimer: section.settings.covid_disclaimer, background: section.settings.covid_background, border: section.settings.covid_border, font: section.settings.covid_font %} {% endif %} {{ product.description }}
### Helps With{% comment %} accentuate-here {% endcomment %}{% for item in product.metafields.accentuate.helps_with_item %}- {{ item }}{% endfor %}
{% if product.metafields.accentuate.badge_icon %}{% for badge in product.metafields.accentuate.badge_icon %}- {% if product.metafields.accentuate.badge_subtext[forloop.index0] %} {{ product.metafields.accentuate.badge_subtext[forloop.index0] }} {% else %} {% endif %}{% endfor %}
{% endif %} {% if product.metafields.accentuate.verification_of_analysis %} {{ section.settings.certificate_heading }} {% endif %}
{{ section.settings.fda_statement }}
{%- assign product_dock_form_id = 'product-dock-form-' | append: section.id -%}
{% schema %} { "name": "t:sections.main-product.name", "tag": "section", "class": "product-section", "blocks": [ { "type": "@app" }, { "type": "quantity_selector", "name": "t:sections.main-product.blocks.quantity_selector.name", "limit": 1 }, { "type": "variant_picker", "name": "t:sections.main-product.blocks.variant_picker.name", "limit": 1, "settings": [ { "type": "select", "id": "picker_type", "options": [ { "value": "dropdown", "label": "t:sections.main-product.blocks.variant_picker.settings.picker_type.options__1.label" }, { "value": "button", "label": "t:sections.main-product.blocks.variant_picker.settings.picker_type.options__2.label" } ], "default": "button", "label": "t:sections.main-product.blocks.variant_picker.settings.picker_type.label" } ] }, { "type": "badge", "name": "Badge", "settings": [ { "type": "text", "id": "title", "label": "Title", "info": "Text under badge icon" }, { "type": "text", "id": "type", "label": "type", "info": "Type must match product's tag" }, { "type": "image_picker", "id": "badge_image", "label": "Badge Image" } ] }, { "type": "verification", "name": "Verification", "settings": [ { "type": "text", "id": "title", "label": "Text", "default": "View Verification of analysis" }, { "type": "url", "id": "url", "label": "URL" } ] } ], "settings": [ { "type": "text", "label": "FDA Statement", "id": "fda_statement", "default": "*These statements have not been evaluated by the Food and Drug Administration. This product is not intended to diagnose, treat, cure or prevent any disease." }, { "type": "text", "label": "Certificate of Analysis Heading", "id": "certificate_heading", "default": "View Certificate Of Analysis" }, { "type": "checkbox", "label": "Covid Disclaimer Before Description", "id": "show_covid_before", "default": false }, { "type": "checkbox", "label": "Show Covid Disclaimer Border", "id": "covid_border", "default": true }, { "type": "color", "label": "Covid Disclaimer Background Color", "id": "covid_background" }, { "type": "checkbox", "label": "Covid Disclaimer Large Font", "id": "covid_font", "default": false }, { "type": "richtext", "label": "Covid Shipping Disclaimer", "id": "covid_disclaimer", "default": "
DUE TO SUPPLY CHAIN SHORTAGES OF COVID-19, THIS PRODUCT WILL BE SHIPPED IN OUR SUSTAINABLE PACKAGING FOR A DISCOUNTED OFFER.
" } ] } {% endschema %} ```