andyfick Posted June 26, 2014 Share Posted June 26, 2014 Hi, I've re-configured product-list.tpl to display 6 products on the homepage, by using the following code: {if $page_name !='index' && $page_name !='product'} {assign var='nbItemsPerLine' value=4} {assign var='nbItemsPerLineTablet' value=2} {assign var='nbItemsPerLineMobile' value=3} {else} {assign var='nbItemsPerLine' value=6} {assign var='nbItemsPerLineTablet' value=3} {assign var='nbItemsPerLineMobile' value=2} {/if} and <li class="ajax_block_product{if $page_name == 'index'} col-xs-12 col-sm-6 col-md-2 {elseif $page_name == 'product'} col-xs-12 col-sm-4 col-md-3 {else} col-xs-12 col-sm-6 col-md-3{/if} I've set six products in the back office to the 'Home' category, but I'm only actually seeing 5 images displayed, formatted with space for a sixth. Page link here: http://accessoriesforthehome.co.uk/prestashop/index.php Frankly, I'm a bit stumped! It looks like the template changes are correct, but only 5 images are being shown. Any help would be greatly appreciated. Andrew Link to comment Share on other sites More sharing options...
andyfick Posted June 27, 2014 Author Share Posted June 27, 2014 I'm an idiot! I'd forgotten there's also a parameter in the Homefeatured module in Back Office. It was set to 5 ... Link to comment Share on other sites More sharing options...
vekia Posted June 28, 2014 Share Posted June 28, 2014 hello it displays 6 products at the moment and if you want to do the same for category view change col-md-3 for example to col-md-2 Link to comment Share on other sites More sharing options...
vadimda Posted December 10, 2014 Share Posted December 10, 2014 It works fine for grid view and i make 4 products in line, but when i switch to list view products are collapsing And interesting moment when i switching back to grid view i get 3 products again. and i have to reload page. ofcourse i turned on recompilation and cleared cache. Link to comment Share on other sites More sharing options...
vadimda Posted December 26, 2014 Share Posted December 26, 2014 It works fine for grid view and i make 4 products in line, but when i switch to list view products are collapsing if you want to display 4 products in the row you need to change not only product-list.tpl but also global.js example if you change col-xs-12 col-sm-6 col-md-4 to col-xs-12 col-sm-6 col-md-3 in the product-list.tpl do the same in the global.js Link to comment Share on other sites More sharing options...
Recommended Posts