Jump to content

[Résolu] Affichage Marque sur Fiche Produit


Recommended Posts

Bonjour,

Je suis en cours d'installation d'un site avec PS 1.6.12 et je voudrais savoir si une solution existe pour afficher la marque de produit quand on affiche un produit ? L'idéal serait aussi de pouvoir cliquer sur cette marque et ainsi d'afficher tous les produits de la marque..

J'ai trouvé un code à insérer dans le source de la fiche produit.. mais il date de 2012 !! 

 

Merci pour votre aide.

 

JP

Edited by chti56 (see edit history)
Link to comment
Share on other sites

Ouvrez le fichier->product.tpl de votre theme et ajoutez ceci, là ou vous souhaitez l'afficher :

<!-- AFFICHE LOGO/NON FABRICANT/PROVENANCE -->
<p {if !$product->manufacturer_name}style="display:none;"{/if}>
     <a href="{$link->getManufacturerLink($product->id_manufacturer)}">
     <label>{l s='PROVENANCE :'}</label>
       <a href="{$link->getManufacturerLink($product->id_manufacturer)}" style="font-weight:700;">
        <img src="{$img_manu_dir}{$product->id_manufacturer|escape:'htmlall':'UTF-8'}.jpg" alt="{$product->manufacturer_name|escape:'htmlall':'UTF-8'}" width="25" style="margin-top:-3px;"/>
        <span>{$product->manufacturer_name|escape:'htmlall':'UTF-8'}</span>
      </a>
    </p>
<!-- FIN AFFICHAGE LOGO/NON FABRICANT/PROVENANCE -->

Videz les caches..

  • Like 1
Link to comment
Share on other sites

  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...