Hi, I have been using the code below to get the variant metafield whenever the variant is selected. However, the problem is, it reloads the page and for some reason on iOS it wont let the customer watch any of the product media videos.
Is there a way to achieve what this code sets to achieve without refreshing the page completely as I think that might be whats causing the issue on iOS.
{% for variant in product.variants %}
{% if product.selected_or_first_available_variant.id == variant.id %}
{{ variant.metafields.custom.dimensions_variants }}
{% endif %}
{% endfor %}