Jump to content

Code for "list view" in product-list.tpl


Recommended Posts

Greetings: I'm using  Prestashop 1.6.1 and I used the @vekia's tutorial to change the default view from Grid to List In the products category  (http://mypresta.eu/en/art/prestashop-16/grid-to-list-products-view.html)

 

It all worked fine

I want to input a simple code in the product-list so it will show a image. 

 

{ {if $product.id_category_default == 25}

<img src="first-image.png">
                       {else}              <img src="2-image.png">
{/if}
}
 
It's placed just before on row 457 just before.
{if $page_name != 'index'}
 
<div class="functional-buttons clearfix">
 
{hook h='displayProductListFunctionalButtons' product=$product}
 
{if isset($comparator_max_item) && $comparator_max_item}
 
 
The code shows on grid view but it dosen't show on the list view.
 
Any ideas?
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...