fix(grille-produits) n'affiche pas de prix pour la Carte Cadeau
This commit is contained in:
parent
c46cb62452
commit
4b1351d592
4 changed files with 6 additions and 1 deletions
|
|
@ -129,6 +129,11 @@ function recupere_informations_produit_shop($produit) {
|
|||
: $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 [
|
||||
// Identifiant du Produit
|
||||
'id' => $produit->get_id(),
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<a href="{{ produit.url }}">{{ produit.nom }}</a>
|
||||
</h3>
|
||||
<p class="produit__textuel__prix">
|
||||
{{ produit.prix }}€
|
||||
{{ produit.prix ? "#{produit.prix}€" : produit.prix }}
|
||||
</p>
|
||||
</figcaption>
|
||||
</figure>
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.5 KiB |
Loading…
Add table
Add a link
Reference in a new issue