2026-04-01
This commit is contained in:
parent
ef19ba2b72
commit
5f332f4068
34 changed files with 9392 additions and 391 deletions
|
|
@ -24,7 +24,7 @@ const _etats = {
|
|||
|
||||
<div class="actions">
|
||||
<button
|
||||
{{ produits|length == 12 ? '' : 'hidden' }}
|
||||
{{ products|length == 12 ? '' : 'hidden' }}
|
||||
class="bouton-case-pleine bouton-blanc-sur-noir"
|
||||
id="bouton-plus-de-produits"
|
||||
type="button"
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
<div class="grille-produits-similaires">
|
||||
{% for produit in produits_meme_collection %}
|
||||
{% for product in same_collection_products %}
|
||||
{# TODO: Trouver une meilleure arborescence et des noms de classe #}
|
||||
<article class="produit">
|
||||
<figure role="figure">
|
||||
<a href="{{ produit.url }}">
|
||||
<a href="{{ product.url }}">
|
||||
<picture class="produit__illustration produit__illustration__principale">
|
||||
{{ produit.default_photo }}
|
||||
{{ product.default_photo }}
|
||||
</picture>
|
||||
|
||||
<picture class="produit__illustration produit__illustration__survol">
|
||||
{{ produit.hover_photo }}
|
||||
{{ product.hover_photo }}
|
||||
</picture>
|
||||
</a>
|
||||
|
||||
<figcaption class="produit__textuel">
|
||||
<h3 class="produit__textuel__titre">
|
||||
<a href="{{ produit.url }}">{{ produit.name }}</a>
|
||||
<a href="{{ product.url }}">{{ product.name }}</a>
|
||||
</h3>
|
||||
<p class="produit__textuel__prix">
|
||||
{{ produit.price }}€
|
||||
{{ product.price }}€
|
||||
</p>
|
||||
</figcaption>
|
||||
</figure>
|
||||
|
|
|
|||
|
|
@ -9,11 +9,11 @@
|
|||
id="variation-choice"
|
||||
name="variation-choice"
|
||||
>
|
||||
<h3 class="selecteur-produit__nom">{{ produit.name }}</h3>
|
||||
<h3 class="selecteur-produit__nom">{{ product.name }}</h3>
|
||||
|
||||
<div class="selecteur-produit__attribut-variation">
|
||||
{% if produit.attributes %}
|
||||
{% for attribut in produit.attributes %}
|
||||
{% if product.attributes %}
|
||||
{% for attribut in product.attributes %}
|
||||
<div class="test">
|
||||
{{ include('parts/pages/produit/selecteur-attributs-produit.twig') }}
|
||||
</div>
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
#}
|
||||
</div>
|
||||
|
||||
<p class="selecteur-produit__prix">{{ prix_maximal ?? produit.price }}€</p>
|
||||
<p class="selecteur-produit__prix">{{ maximum_price ?? product.price }}€</p>
|
||||
</form>
|
||||
</aside>
|
||||
|
||||
|
|
@ -79,7 +79,7 @@
|
|||
class="section-textuelle__contenu"
|
||||
id="section-details-produit"
|
||||
>
|
||||
{{ produit.details }}
|
||||
{{ product.details }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
|
@ -122,7 +122,7 @@
|
|||
|
||||
<div class="details-produit__actions">
|
||||
{# Désactive le bouton d'ajout au panier en cas d'absence de stock. #}
|
||||
{% if produit.stock > 0 %}
|
||||
{% if product.stock > 0 %}
|
||||
<button
|
||||
class="bouton-case-pleine"
|
||||
disabled
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
aria-label="Photo of the Product alone"
|
||||
class="colonne colonne-gauche"
|
||||
>
|
||||
{% for photo in produit.left_column_photos %}
|
||||
{% for photo in product.left_column_photos %}
|
||||
<figure
|
||||
data-index="0"
|
||||
role="figure"
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
aria-label="Photos of the Product worn"
|
||||
class="colonne colonne-droite"
|
||||
>
|
||||
{% for photo in produit.right_column_photos %}
|
||||
{% for photo in product.right_column_photos %}
|
||||
<figure
|
||||
data-index="{{ loop.index }}"
|
||||
role="figure"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<div
|
||||
class="grille-produits"
|
||||
data-page="1"
|
||||
{% if id_categorie_produits %}data-id-categorie-produits="{{ id_categorie_produits }}"{% endif %}
|
||||
{% if products_category_id %}data-id-categorie-produits="{{ products_category_id }}"{% endif %}
|
||||
>
|
||||
{% if products|length > 0 %}
|
||||
{% for product in products %}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
/** @type {Etats} */
|
||||
const _etats = {
|
||||
idProduit: {{ produit.id }},
|
||||
idProduit: {{ product.id }},
|
||||
nonce: "{{ nonce_wc }}",
|
||||
};
|
||||
</script>
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
{{ include('parts/pages/produit/informations-produit.twig') }}
|
||||
|
||||
{# Produits de la même Collection (Produits similaires) #}
|
||||
{% if produit.collection != '' %}
|
||||
{% if product.collection != '' and same_collection_products|length > 0 %}
|
||||
{{ include('parts/pages/produit/produits-similaires.twig') }}
|
||||
{% endif %}
|
||||
{% endblock contenu %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue