Jump to content

display supplier logo in home page


Riya

Recommended Posts

Hi ,I am using prestashop 1.5.6.2

 

I am trying to display supplier logo in home page but image are not display

 

Please help me

 

I am using following code

{foreach from=$tab->supplier_list item=supplier name=supplier_list key=delay}
					
{if isset($supplier.id_supplier)}
<li class="ajax_block_product" data-animate="fadeInDown" data-delay="{$delay*200}">
<a href="{$link->getsupplierLink($supplier.id_supplier, $supplier.link_rewrite)|escape:'html'}" title="{$supplier.name|escape:'htmlall':'UTF-8'}" class="product_image">
<img src="{$img_sup_dir}{$supplier.id_supplier|escape:'htmlall':'UTF-8'}-medium_default.jpg alt="{$img_sup_dir}{$supplier.id.supplier|escape:'htmlall':'UTF-8'}-medium_default.jpg alt="" /></a>

<h3><a href="{$supplier.name|escape:'htmlall':'UTF-8'}">{$supplier.name|escape:'htmlall':'UTF-8'}</a></h3>

cshometab.zip

Link to comment
Share on other sites

Seems to be some syntax error here in the <img> tag:

 

<img src="{$img_sup_dir}{$supplier.id_supplier|escape:'htmlall':'UTF-8'}-medium_default.jpg alt="{$img_sup_dir}{$supplier.id.supplier|escape:'htmlall':'UTF-8'}-medium_default.jpg alt="" />

 

 

The quotes are on the wrong position. Also 2x Alt given...

Change to:

 

<img src="{$img_sup_dir}{$supplier.id_supplier|escape:'htmlall':'UTF-8'}-medium_default.jpg" alt="{$supplier.name|escape:'htmlall':'UTF-8'}" />

 

Hope that helps,

pascal.

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