Sochard Clément Posted May 21 Share Posted May 21 (edited) Bonjour, Je voudrais afficher la marque sous le nom du produit dans les pages listant les produits. J’ai vu différentes propositions sur des forums, mais avec des versions antérieures (je suis en 8.1.7). J'ai tout de même testé d'insérer un code à différents endroits, sans qu'il n'y ait aucune modification. Par exemple dans le fichier themes>warehouse>templates>catalog>_partials>miniatures>product.tpl {if $product.id_manufacturer} {Manufacturer::getNameById($product.id_manufacturer)} {/if} Mais malheureusement rien ne change côté Front Pouvez-vous m'aider ? Par avance, merci ! Edited May 21 by Sochard Clément (see edit history) Link to comment Share on other sites More sharing options...
Divine Posted May 30 Share Posted May 30 (edited) Bonjour, Essayez plutôt ceci : {if isset($product.id_manufacturer)} <div class="product-manufacturer">{$product.manufacturer_name}</div> {/if} Edited May 30 by Divine (see edit history) 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