Besoin d’aide pour corriger un code Liquid Shopify

J’ai un problème d’affichage des photos de dropshipping, car le code du thème dans la section product-main.liquid a ajouté ces vérifications avant d’afficher les images du produit :
assign image_suffixes = “_f,_z,_b,_s,_t,_i,_d1,_d2,_d3,_d4,_d5,_d6,_d7,_d8,_d9” | split: “,”

Je veux enlever cette vérification tout en conservant le reste du code intact, afin que les autres photos que j’ai déjà ou la fiche produit ne soient pas affectées."**

Pouvez-vous partager l’intégralité du code concerné dans product-main.liquid ? Cela nous permettra de mieux comprendre comment la vérification des suffixes est appliquée et de la supprimer sans affecter le reste des fonctionnalités du thème.

{% liquid render 'section-script-tags', lazy: true, section: 'product-main' render 'section-style-tags', inline: true, lazy: false, section: 'product-main'

render ‘component-script-tags’, component: ‘swiper’, lazy: true
render ‘component-style-tags’, inline: true, component: ‘swiper’, lazy: false

render ‘component-script-tags’, component: ‘product-form’, lazy: true
render ‘component-style-tags’, component: ‘product-form’, inline: true, lazy: false

render ‘component-script-tags’, component: ‘lightbox’, lazy: true
render ‘component-style-tags’, component: ‘lightbox’, inline: true, lazy: false

render ‘component-script-tags’, lazy: true, component: ‘tabs’
render ‘component-style-tags’, component: ‘tabs’

render ‘component-script-tags’, component: ‘complementary-products’, lazy: true
render ‘component-style-tags’, inline: true, component: ‘complementary-products’, lazy: false

assign image_suffixes = “_f,_z,_b,_s,_t,_i,_d1,_d2,_d3,_d4,_d5,_d6,_d7,_d8,_d9” | split: “,”

for tag in product.tags
if tag contains ‘brand:’
assign vendor_handle = tag | split: ‘brand:’ | last
assign collection_url = collections[vendor_handle].url
endif
endfor
%}

#shopify-section-{{ section.id }} { --section-margin-top: {{ section.settings.section_margin_top }}rem; --section-padding-top: {{ section.settings.section_padding_top }}rem; --section-padding-bottom: {{ section.settings.section_padding_bottom }}rem; }
{% for variant in product.variants %} {% capture thumbs %} {% for suffix in image_suffixes %} {% for media in product.media %} {% assign src_downcased = media.src | downcase %}

{% if src_downcased contains suffix and src_downcased contains variant.sku %}

{% liquid comment For performance, all thumbs will be lazyloaded. endcomment

assign loading = ‘lazy’
assign preload = false

render ‘media’, media: media, width: 1000, loading: loading, preload: preload, index: forloop.index, thumbnail: true
%}

{% endif %} {% endfor %} {% endfor %} {% endcapture %}

{% assign image_index = 0 %}

{% capture main_images %}
{% for suffix in image_suffixes %}
{% for media in product.media %}
{% assign src_downcased = media.src | downcase %}

{% if src_downcased contains suffix and src_downcased contains variant.sku %}

{% liquid comment For performance the first image needs to be preloaded and the rest of the images will be lazyloaded. endcomment

if forloop.first
assign loading = ‘default’
assign preload = true
else
assign loading = ‘lazy’
assign preload = false
endif

render ‘media’, media: media, width: 1000, loading: loading, preload: preload, index: forloop.index
%}

{% render 'icons', icon: "zoom-in" %}

{% assign image_index = image_index | plus: 1 %}
{% endif %}
{% endfor %}
{% endfor %}
{% endcapture %}

All code is here

tous le code est ici


What was removed:

![Screenshot 2025-02-19 at 5.32.13 PM.png|1674x144](upload://pIonh4JsTRIxWZinsOjeVrB2Zre.png)

![Screenshot 2025-02-19 at 5.31.10 PM.png|1478x1464](upload://7RjdKQnkGWUC1MLLHzTlOEocCme.png)

Malheureusement, les produits en dropshipping ne s’affichent pas comme les autres produits.

Je t’ai inclus tout le code sous forme de fichier CSV.