From a5b240cd3f73ca7494f71dc7eb0d3eee62ca03be Mon Sep 17 00:00:00 2001 From: gcch Date: Wed, 17 Dec 2025 17:30:11 +0100 Subject: [PATCH] =?UTF-8?q?fix(produit)=20corrige=20les=20Produits=20de=20?= =?UTF-8?q?la=20m=C3=AAme=20collection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/app/themes/haiku-atelier-2024/single-product.php | 2 +- .../haiku-atelier-2024/src/inc/TraitementInformations.php | 6 +++--- .../parts/pages/produit/grille-produits-similaires.twig | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web/app/themes/haiku-atelier-2024/single-product.php b/web/app/themes/haiku-atelier-2024/single-product.php index a5894e0d..0035a043 100755 --- a/web/app/themes/haiku-atelier-2024/single-product.php +++ b/web/app/themes/haiku-atelier-2024/single-product.php @@ -57,8 +57,8 @@ $variations_produit = pipe( $prix_maximal = collect($variations_produit)->max('prix'); $produits_meme_collection = array_map( - callback: recupere_informations_produit_page_produit(...), array: recupere_produits_meme_collection($donnees_produit->collection)($donnees_produit->id), + callback: Product::new(...), ); $context['produit'] = $donnees_produit; diff --git a/web/app/themes/haiku-atelier-2024/src/inc/TraitementInformations.php b/web/app/themes/haiku-atelier-2024/src/inc/TraitementInformations.php index f256591f..fb2dcf74 100755 --- a/web/app/themes/haiku-atelier-2024/src/inc/TraitementInformations.php +++ b/web/app/themes/haiku-atelier-2024/src/inc/TraitementInformations.php @@ -1,15 +1,15 @@ - - {{ produit.photo_repos }} + {{ produit.default_photo }} - {{ produit.photo_survol }} + {{ produit.hover_photo }}

- {{ produit.nom }} + {{ produit.name }}

- {{ produit.prix }}€ + {{ produit.price }}€