jlweb Posted September 12, 2016 Posted September 12, 2016 Bonjour, Je suis en plein override du module Blockreinsurance et je cherche comment afficher un texte supplémentaire dans blockreinsurance.tpl en fonction de l'id de l'élément. J'ai tenté le code ci-dessous sans succès : {foreach from=$infos item=info} <li> <img src="{$link->getMediaLink("`$module_dir`img/`$info.file_name|escape:'htmlall':'UTF-8'`")}" alt="{$info.text|escape:html:'UTF-8'}" /> <br /> <span>{$info.text|escape:html:'UTF-8'}</span> <br /> {if $info.id_reinsurance=1}sous 30 jours{/if} {/foreach} Pouvez-vous m'éclairer ? Merci Share this post Link to post Share on other sites More sharing options...
coeos.pro Posted September 12, 2016 Posted September 12, 2016 essaye de remplacer $info.id_reinsurance=1 par $info.id_reinsurance eq 1 Share this post Link to post Share on other sites More sharing options...
jlweb Posted September 12, 2016 Posted September 12, 2016 ça fonctionne super !! Merci Share this post Link to post 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