Brand logos

brandlogopl

Following these steps will have the logo of the brand or manufacturer of the products in the list of products in each category

First we have an image assigned to each manufacturer in backoffice / catalogue / manufactures

Then locate the file

themes/ the_theme / product-list.tpl

and below this part

{if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
<a class="sale-box" href="{$product.link|escape:'html':'UTF-8'}"><span class="sale-label">{l s='Sale!'}</span> </a>
 {/if}

add this

{assign var="manufacturer_image" value="img/m/{$product.id_manufacturer}.jpg"}{if file_exists($manufacturer_image)}
<a class="manufacturer_image" href="{$product.link|escape:'html':'UTF-8'}"><img src="{$img_manu_dir}{$product.id_manufacturer}-small_default.jpg" /></a>{/if}

and finally to place the added image in the file

\themes\the_theme\css\product_list.css

add

 

ul.product_list .manufacturer_image img {
width: 80px;
}
ul.product_list .manufacturer_image {
position: absolute;
bottom: 0;
left: 0.8em;
top: 0;
}

Posted on 02/04/2015 in Prestashop

Share the Story

Leave a reply

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Back to Top