fix(produit) corrige les Produits de la même collection
This commit is contained in:
parent
05baad8fdd
commit
a5b240cd3f
3 changed files with 8 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Fonctions pour le traitement d'informations.
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
use function Crell\fp\pipe;
|
||||
use HaikuAtelier\Data\Attribute;
|
||||
|
||||
use HaikuAtelier\Data\Product;
|
||||
|
||||
use WC_Product;
|
||||
|
||||
// Page Shop
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -5,20 +5,20 @@
|
|||
<figure role="figure">
|
||||
<a href="{{ produit.url }}">
|
||||
<picture class="produit__illustration produit__illustration__principale">
|
||||
{{ produit.photo_repos }}
|
||||
{{ produit.default_photo }}
|
||||
</picture>
|
||||
|
||||
<picture class="produit__illustration produit__illustration__survol">
|
||||
{{ produit.photo_survol }}
|
||||
{{ produit.hover_photo }}
|
||||
</picture>
|
||||
</a>
|
||||
|
||||
<figcaption class="produit__textuel">
|
||||
<h3 class="produit__textuel__titre">
|
||||
<a href="{{ produit.url }}">{{ produit.nom }}</a>
|
||||
<a href="{{ produit.url }}">{{ produit.name }}</a>
|
||||
</h3>
|
||||
<p class="produit__textuel__prix">
|
||||
{{ produit.prix }}€
|
||||
{{ produit.price }}€
|
||||
</p>
|
||||
</figcaption>
|
||||
</figure>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue