From a39682d36354a8fbbc6b49142ab7c80db08f2655 Mon Sep 17 00:00:00 2001 From: gcch Date: Wed, 17 Dec 2025 17:47:46 +0100 Subject: [PATCH] =?UTF-8?q?fix(produit)=20r=C3=A9tablis=20le=20s=C3=A9lect?= =?UTF-8?q?eur=20de=20variation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - passe temporairement du sélecteur d'attribut au sélecteur de variation, car il n'est pas possible de mettre à jour le prix affiché au changement de variation... --- .../themes/haiku-atelier-2024/page-cart.php | 4 +- .../haiku-atelier-2024/single-product.php | 10 +-- .../pages/produit/informations-produit.twig | 82 +++++++++---------- 3 files changed, 48 insertions(+), 48 deletions(-) diff --git a/web/app/themes/haiku-atelier-2024/page-cart.php b/web/app/themes/haiku-atelier-2024/page-cart.php index cdfaaac8..b3754d10 100755 --- a/web/app/themes/haiku-atelier-2024/page-cart.php +++ b/web/app/themes/haiku-atelier-2024/page-cart.php @@ -169,8 +169,8 @@ function charge_scripts_styles_page_panier(): void { add_action('wp_enqueue_scripts', 'charge_scripts_styles_page_panier'); -$lal = wp_json_encode($contexte); -echo ""; +// $lal = wp_json_encode($contexte); +// echo ""; // Rendu Timber::render( diff --git a/web/app/themes/haiku-atelier-2024/single-product.php b/web/app/themes/haiku-atelier-2024/single-product.php index 0035a043..11e66d50 100755 --- a/web/app/themes/haiku-atelier-2024/single-product.php +++ b/web/app/themes/haiku-atelier-2024/single-product.php @@ -86,12 +86,12 @@ function charge_scripts_page_produit(): void { add_action('wp_enqueue_scripts', 'charge_scripts_page_produit'); -$lal = wp_json_encode($context); -echo ""; +// $lal = wp_json_encode($context); +// echo ""; -$lol = wc_get_product()->get_children(); -$lol = wp_json_encode($lol); -echo ""; +// $lol = wc_get_product()->get_children(); +// $lol = wp_json_encode($lol); +// echo ""; // Rendu Timber::render( diff --git a/web/app/themes/haiku-atelier-2024/views/parts/pages/produit/informations-produit.twig b/web/app/themes/haiku-atelier-2024/views/parts/pages/produit/informations-produit.twig index d8ab3e4b..37ec5236 100755 --- a/web/app/themes/haiku-atelier-2024/views/parts/pages/produit/informations-produit.twig +++ b/web/app/themes/haiku-atelier-2024/views/parts/pages/produit/informations-produit.twig @@ -12,48 +12,48 @@

{{ produit.name }}

- {% if produit.attributes %} - {% for attribut in produit.attributes %} -
- {{ include('parts/pages/produit/selecteur-attributs-produit.twig') }} -
- {% endfor %} - {% endif %} - - + #} + + {% if variations_produit|length > 1 %} + + +
+ +
+ {% endif %}

{{ prix_maximal ?? produit.price }}€