Jump to content

Afficher les marques


Recommended Posts

Bonsoir,

 

je me permet de faire un petit UP je n'ai toujours pas trouvé comment je peux aligner "marque" sous le titre de la fiche produit. Ainsi que le mettre en gras comme "référence, quantité" et ne pas mettre de logo mais plutôt du texte.

 

Voici le code que j'ai mis dans le fichier product.tpl

 

<p id="product_manufacturer">
   <label for="product_manufacturer">{l s='Marque :'} </label>
   <span class="editable">
    {if $product->id_manufacturer !=0}
    <a href="{$link->getPageLink('manufacturer.php',true)}?id_manufacturer={$product->id_manufacturer}">
    <img src="{$img_ps_dir}/m/{$product->id_manufacturer}-small_default.jpg" style="vertical-align:middle" class="product_img_manufacturer" title="{if isset($manufacturers[0].name)} {$manufacturers[0].name} {/if}"/></a>
     
	    {if isset($manufacturers)}
		    {foreach from=$manufacturers item='manufacturer' name='manufacturers'}
			    {if $manufacturer.id_manufacturer==$product->id_manufacturer}
				    <a href="{$link->getPageLink('manufacturer.php',true)}?id_manufacturer={$product->id_manufacturer}">{$manufacturer.name}</a>
			    {/if}
		    {/foreach}
	    {/if}
    {else}
	  -
    {/if}
   </span>

 

merci

Link to comment
Share on other sites

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...