Jump to content

(SOLVED) Modifying number of products per row in product list


Recommended Posts

Hello everyone. I have recently installed prestashop and I have been trying to change the number of products shown in my product list (as a category). I googled it and found this topic - http://www.prestashop.com/forums/topic/316622-how-to-add-more-columns-to-product-list-on-ps-16/

 

However, I tried everything and nothing helped. It is acting like I haven't changed anything. 

 

Here is how my modifications in the product-list.tpl file look like:

	{if $page_name !='index' && $page_name !='product'}
		{assign var='nbItemsPerLine' value=6}
		{assign var='nbItemsPerLineTablet' value=2}
		{assign var='nbItemsPerLineMobile' value=4}
	{else}
		{assign var='nbItemsPerLine' value=6}
		{assign var='nbItemsPerLineTablet' value=4}
		{assign var='nbItemsPerLineMobile' value=2}
<li class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-6{else} col-xs-12 col-sm-4 col-md-6{/if}

I am using Prestashop 1.6 - latest.

 

I am trying to have 4, 5 or even 6 products per row - whichever works best, because at the moment none works.

 

Thanks in advance and I will be very grateful if you help me solve my issue.

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