Kilobaid Posted September 9, 2015 Share Posted September 9, 2015 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 More sharing options...
Kilobaid Posted September 11, 2015 Author Share Posted September 11, 2015 (edited) I solved it. It's above "on sale" code ( {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}) Edited September 11, 2015 by Kilobaid (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now