Jump to content

Reducing the number of the products in a row - product list / category view


pimkajfasz
 Share

Recommended Posts

Hi guys!

I'm trying to reduce the number of displayed products per row in the categories. Currently, there are 5 products in a row and I wish to have only 4 bigger. I followed a few discussions on this forum and concluded that change has to be edited in the product-list.tpl file. Most probably it's connected with this fragment of a code but after reducing the bolded number to 4 nothing changes even if I cleaned the cache and force it to compile. I don't have an idea how to proceed with the required change. In case there is someone who would like to have a look at the attached file and advise me that would be great!

{if $page_name !='index' && $page_name !='product'}
        {assign var='nbItemsPerLine' value=5}
        {assign var='nbItemsPerLineTablet' value=4}
        {assign var='nbItemsPerLineMobile' value=2}
    {else}
        {assign var='nbItemsPerLine' value=5}
        {assign var='nbItemsPerLineTablet' value=4}
        {assign var='nbItemsPerLineMobile' value=2}
    {/if}

The shop address is: http://przemyslawtyszkiewicz.com

PrestaShop: 1.6.1.1

Theme: ELATION ADVANCE TOUCH THEME

screenshot.png

product-list.tpl

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More