Jump to content

How to change the number of products per row and column based on Pagelayout category page v1.6.0.9?


viji

Recommended Posts

Hi,

How to change the number of products per row and column based on Page layout on Category Page in prestashop 1.6.0.9?

 

{if $page_name !='index' && $page_name !='product' && !isset($left_column_size)}
{assign var='nbItemsPerLine' value=4}
{assign var='nbItemsPerLineTablet' value=2}
{assign var='nbItemsPerLineMobile' value=3}
{else}
{assign var='nbItemsPerLine' value=3}
{assign var='nbItemsPerLineTablet' value=3}
{assign var='nbItemsPerLineMobile' value=2}
{/if}
 
I use this method to change the number of products per row, but I don't know how to change the number of products per row on left column?
 
<li class="{$left_column_size} post ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-4{else}col-xs-12 col-sm-6 col-md-3{/if}>
 
In this also, I can't change the bootstrap class for left column.
 
If we change in product-list.tpl file, grid view works correct, but the list view gets affected.
Link to comment
Share on other sites

  • 1 year later...

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...