Bonjour, j’ai un probleme sur mon site quand je choisis different types de mon produits le prix barré ne change pas, il y a un moyen de corriger cela ?
voici mon product.template.liquid
{% case section.settings.media_size %}
{% when ‘small’ %}
{%- assign product_media_width = ‘medium-up–one-third’ -%}
{%- assign product_description_width = ‘medium-up–two-thirds’ -%}
{%- assign height = 345 -%}
{% when ‘medium’ %}
{%- assign product_media_width = ‘medium-up–one-half’ -%}
{%- assign product_description_width = ‘medium-up–one-half’ -%}
{%- assign height = 530 -%}
{% when ‘large’ %}
{%- assign product_media_width = ‘medium-up–two-thirds’ -%}
{%- assign product_description_width = ‘medium-up–one-third’ -%}
{%- assign height = 720 -%}
{% when ‘full’ %}
{%- assign product_media_width = ‘’ -%}
{%- assign product_description_width = ‘’ -%}
{%- assign height = 1090 -%}
{%- assign enable_image_zoom = false -%}
{% endcase %}
{%- for media in product.media -%}
{% include ‘media’, media: media, featured_media: featured_media, height: height, enable_image_zoom: enable_image_zoom, image_zoom_size: product_image_zoom_size, image_scale: product_image_scale %}
{%- endfor -%}
{% assign first_3d_model = product.media | where: “media_type”, “model” | first %}
{%- if first_3d_model -%}
<button
aria-label=“{{ ‘products.product.view_in_space_label’ | t }}”
class=“product-single__view-in-space”
data-shopify-xr
data-shopify-model3d-id=“{{ first_3d_model.id }}”
data-shopify-title=“{{ product.title | escape }}”
data-shopify-xr-hidden
{% include ‘icon-3d-badge-full-color’ %}{{ ‘products.product.view_in_space’ | t }}
{%- endif -%}
{% if product.media.size > 1 %}
{% if product.media.size > 4 %}
{%- assign enable_thumbnail_slides = true -%}
{% endif %}
-
{% if enable_thumbnail_slides == true %}
-
{%- capture thumbnailAlt -%}
{%- if media.media_type == ‘video’ or media.media_type == ‘external_video’ -%}
{{ ‘sections.featured_product.video_thumbnail_alt’ | t: imageAlt: media.alt | escape }}
{%- elsif media.media_type == ‘model’ -%}
{{ ‘sections.featured_product.model_thumbnail_alt’ | t: imageAlt: media.alt | escape }}
{%- else -%}
{{ ‘sections.featured_product.gallery_thumbnail_alt’ | t: imageAlt: media.alt | escape }}
{%- endif -%}
{%- endcapture -%}{%- if media.media_type == ‘video’ or media.media_type ==‘external_video’ -%}
{% include 'icon-video-badge-full-color' %}{%- endif -%} {%- if media.media_type == 'model' -%}{% include 'icon-3d-badge-full-color' %}{%- endif -%}
{% endfor %}
{% for media in product.media %}
{% if enable_thumbnail_slides == true %}
{{ product.title }}
{%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
{% capture “form_classes” -%}
product-form product-form-{{ section.id }}
{%- if section.settings.enable_payment_button and product.has_only_default_variant %} product-form–payment-button-no-variants {%- endif -%}
{%- if current_variant.available == false %} product-form–variant-sold-out {%- endif -%}
{%- endcapture %}
{% form ‘product’, product, class:form_classes, novalidate: ‘novalidate’, data-product-form: ‘’ %}
{% unless product.has_only_default_variant %}
{% if section.settings.show_quantity_selector %}
{%- comment -%}
Live region for announcing updated price and availability to screen readers
{%- endcomment -%}
{%- comment -%}
Live region for announcing that the product form has been submitted and the
product is in the process being added to the cart
{%- endcomment -%}
{{ 'products.product.loader_label' | t }}
{% if section.settings.show_share_buttons %}
{% include ‘social-sharing’, share_title: product.title, share_permalink: product.url, share_image: product.featured_media %}
{% endif %}
{% unless product == empty %}
{% endunless %}