Manu-41 Posted January 15, 2021 Share Posted January 15, 2021 (edited) Bonjour, j'ai besoin d'afficher un texte suivant une valeur de caractéristique. Savez-vous comment puis-je procéder? Ps 1.6 Merci Edited January 15, 2021 by Manu-shop (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted January 15, 2021 Share Posted January 15, 2021 {if isset($features) && $features} {foreach from=$features item=feature} {if $feature.id_feature == XXX} <p>Votre phrase</p> {/if} {/foreach} {/if} Link to comment Share on other sites More sharing options...
Manu-41 Posted January 15, 2021 Author Share Posted January 15, 2021 bonjour Eolia, j'ai fait ainsi (je viens juste de trouver) {foreach from=$features item=feature}{if $feature.value == 'MA VALEUR'}<span> mon texte </span>{/if}{/foreach} Ça fonctionne. Merci encore pour ta réponse rapide 😉 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now