fix(grille-produits) n'affiche pas de prix pour la Carte Cadeau

This commit is contained in:
gcch 2025-12-04 11:01:52 +01:00
commit 4b1351d592
4 changed files with 6 additions and 1 deletions

View file

@ -129,6 +129,11 @@ function recupere_informations_produit_shop($produit) {
: $produit->get_price(), : $produit->get_price(),
); );
// TEMP: Cas de la Carte Cadeau où aucun prix ne doit être affiché. Idéalement utiliser un système d'étiquettes pour ces cas là.
if ($produit->get_sku() === 'GIFTcard') {
$prix_maximal = '';
}
return [ return [
// Identifiant du Produit // Identifiant du Produit
'id' => $produit->get_id(), 'id' => $produit->get_id(),

View file

@ -23,7 +23,7 @@
<a href="{{ produit.url }}">{{ produit.nom }}</a> <a href="{{ produit.url }}">{{ produit.nom }}</a>
</h3> </h3>
<p class="produit__textuel__prix"> <p class="produit__textuel__prix">
{{ produit.prix }} {{ produit.prix ? "#{produit.prix}€" : produit.prix }}
</p> </p>
</figcaption> </figcaption>
</figure> </figure>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Before After
Before After