Jump to content

changing the number of columns of featured products


fadygh

Recommended Posts

Open product-list.tpl and find this code:

{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}

Change 4 to desired number

Link to comment
Share on other sites

  • 11 months later...
for correct GRID-LIST

 

you must change values in /js/global.js too:

 

 

function display(view)

{

...

$('.product_list > li').removeClass('col-xs-12 col-sm-6 col-md-3').addClass('col-xs-12');

...

$('.product_list > li').removeClass('col-xs-12').addClass('col-xs-12 col-sm-6 col-md-3');

...
Link to comment
Share on other sites

×
×
  • Create New...