samedi 22 février 2020

How to display a text if the product belongs to a store of defined type?

I have a Drupal 8 site with Drupal Commerce 2

I have a template for my product commerce-product--produit--full.html.twig

I have 2 types of store (1 and 2). I want that when the product is in a type 2 store, it displays the text "test".

If the product is in a type 1 store, it displays nothing.

How do I do this in TWIG ?


Aucun commentaire:

Enregistrer un commentaire