Homepage displays 3 products per row whie category pages 4

I use homepage products pro module in my prestashop 1.6, default bootstrap theme. I've got one doubt. My homepage shows 3 products per row, while category pages display 4 products per row.  How I can display 4 products?


Change number of products on homepage


Hello
The number of products that appear on homepage also depends on template
in product-list.tpl file i suggested to alter you can find a code (at the begining of file)

 {if $page_name !='index' && $page_name !='product'}
  {assign var='nbItemsPerLine' value=3}
  {assign var='nbItemsPerLineTablet' value=2}
  {assign var='nbItemsPerLineMobile' value=3}
 {else}
  {assign var='nbItemsPerLine' value=4}
  {assign var='nbItemsPerLineTablet' value=3}
  {assign var='nbItemsPerLineMobile' value=2}
 {/if}
if you want to show 4 products per row on homepage ("index"), just change the numbers like i show below:
 {if $page_name !='index' && $page_name !='product'}
  {assign var='nbItemsPerLine' value=3}
  {assign var='nbItemsPerLineTablet' value=2}
  {assign var='nbItemsPerLineMobile' value=3}
 {else}
  {assign var='nbItemsPerLine' value=4}
  {assign var='nbItemsPerLineTablet' value=3}
  {assign var='nbItemsPerLineMobile' value=2}
 {/if}
Share on Google Plus

About VEKIA

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment