Jump to content

Problème D'affichage Images Fabricants Entre Colonne De Gauche Et Colonne De Droite


atipix

Recommended Posts

Sur prestashop 1.2.5 (bon d'accord, pas la dernière...)

Je souhaite afficher l'image du fabricant au dessus de la liste déroulante des fabricants, ça fonctionne sur la colonne de droite mais pas sur la colonne de gauche... Pourquoi ? J'en perds mon latin !!!

Je vous joins mon fichier php

merci.

 

ici le code du template (puisque je ne peux pas le joindre... grrrrr....)

 

<!-- Block manufacturers module -->

<div id="manufacturers_block_left" class="block blockmanufacturer">

<h4><a href="{$base_dir}manufacturer.php" title="{l s='Manufacturers' mod='blockmanufacturer'}">{l s='Manufacturers' mod='blockmanufacturer'}</a></h4>

<!-- Block manufacturers module -->

<div class="block_content">

<!-- Image Fabricant -->

{if $product_manufacturer->id}

<p class="align_center"><a href="{$link->getmanufacturerLink($product_manufacturer->id, $product_manufacturer->link_rewrite)}" title="{$product->manufacturer_name}">

<img src="{$img_manu_dir}{$product_manufacturer->id}-medium.jpg" alt="{$product_manufacturer->name}" vspace="3px"/>

</a></p>

{/if}

<!-- Liste -->

{if $manufacturers}

{if $text_list}

<ul class="bullet">

{foreach from=$manufacturers item=manufacturer name=manufacturer_list}

{if $smarty.foreach.manufacturer_list.iteration <= $text_list_nb}

<li class="{if $smarty.foreach.manufacturer_list.last}last_item{elseif $smarty.foreach.manufacturer_list.first}first_item{else}item{/if}"><a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='More about' mod='blockmanufacturer'} {$manufacturer.name}">{$manufacturer.name}</a></li>

{/if}

{/foreach}

</ul>

{/if}

{if $form_list}

<form action="{$smarty.server.SCRIPT_NAME}" method="get">

<p>

<select id="manufacturer_list" onchange="autoUrl('manufacturer_list', '');">

<option value="0">{l s='All manufacturers' mod='blockmanufacturer'}</option>

{foreach from=$manufacturers item=manufacturer}

<option value="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}">{$manufacturer.name}</option>

{/foreach}

</select>

</p>

</form>

{/if}

{else}

<p>{l s='No manufacturer' mod='blockmanufacturer'}</p>

{/if}

</div>

</div>

<!-- /Block manufacturers module -->

blockmanufacturer.php

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