Hi,
Been using Minimal (yes, I know it’s been retired!) since we opened our store September last year.
Until the last month you could click on product photos and it would change the variant displayed in the drop down list. We modified the code following this script and everything worked fine until a month ago.
Now, it still works on the older photos/variants but NOT for the newer photos/variants we have added!
I’ve looked into the code a little and found there are some errors in the product template liquid as shown below.
Something related to lazy load I believe? Would this be affecting the photo/variant change?
Or is it something else?
Thanks
{% if section.settings.product_thumbnails_position == ‘below’ or product.images.size < 2 %}
{% for image in product.images %}
{% capture img_id %}ProductImage-{{ image.id }}{% endcapture %}
{% capture img_wrapper_id %}ProductImageWrapper-{{ image.id }}{% endcapture %}
{%- assign img_url = image | img_url: ‘1x1’ | replace: ‘1x1.', '{width}x.’ -%}
{% include ‘image-style’ with image: image, small_style: false, width: 700, height: 1024, wrapper_id: img_wrapper_id, img_id: img_id %}
{% if product.images.size > 1 %}
{% endif %}
{% else %}
{% for image in product.images %}
{% capture img_id %}ProductImage-{{ image.id }}{% endcapture %}
{% capture img_wrapper_id %}ProductImageWrapper-{{ image.id }}{% endcapture %}
{%- assign img_url = image | img_url: ‘1x1’ | replace: ‘1x1.', '{width}x.’ -%}
{% include ‘image-style’ with image: image, small_style: false, width: 700, height: 1024, wrapper_id: img_wrapper_id, img_id: img_id %}
{% endif %}