Lacroix Posted April 12, 2017 Share Posted April 12, 2017 Bonjour,Je suis à la recherche d'un petit code facile pour insérer un message sur toutes les pages produits SAUF d'un FABRICANT. J'étais avec ce code-ci mais celui-là ne marche pas. {if $manufacture->id neq 19} <p class="message">{l s='reduction_message'}</p> {/if} Quelqu'un aurait une petite astuce ou un peu de temps à me consacrer? C'est super gentil Link to comment Share on other sites More sharing options...
Eolia Posted April 12, 2017 Share Posted April 12, 2017 $manufacture n'existe pas^^ Un truc comme ça marcherait mieux: {if !empty($product->id_manufacturer) && $product->id_manufacturer != 19} Link to comment Share on other sites More sharing options...
Lacroix Posted April 12, 2017 Author Share Posted April 12, 2017 Oui j'ai plutôt oublié le "r" dans mon code Mais super ! Le code fonctionne. Je vous remercie infiniment Link to comment Share on other sites More sharing options...
Eolia Posted April 12, 2017 Share Posted April 12, 2017 Même avec le "r" ca ne fonctionnerait pas hein^^ $manufacturer n'existe pas dans cette page produit 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