Jump to content

Prestashop Grid View doesn't display all items in alternative rows


spRami

Recommended Posts

Greetings,

 

As I kept on adding products to the store, the bug caught my eyes. In the product list under the defined categories, the products seem to be not following the defined order of a Grid View. If you look into my website, http://www.smartporua.com/142-fiction, you will notice that the Grid View is a little off. Every even numbered row contains only one item instead of three (that is only if the category contains 5 or more items). In addition, when you hover over an item that is in the odd numbered row, the item in the following row changes its column. 

 

I have tried to play around with the height and width of the items, and the containing divs. But I had no luck. Any idea why this might be?

 

The store is using version: 1.6.1.5.

 

Thanks.

Link to comment
Share on other sites

  • 1 month later...

Hi I have the same problem, also if the desciption of one product or the color list has a lot of colors the rows are off. Meaning that below the item with a lot of colours there are no products because that column is to long. Also when you hover over one product the product below changes position in columns. If we can tell the system to have fixed rows and each row should be populated that should work. I have searched a lot but couldn't find any solution.

Link to comment
Share on other sites

hello,you need edit   \themes\yourtheme\product-list.tpl

file,change 

{if $page_name !='index' && $page_name !='product'}
        {if $hide_left_column xor $hide_right_column}
            {assign var='nbol' value=4}  it seems this change value to 3
        {else}
            {assign var='nbol' value=4}
        {/if}
		{assign var='nbItemsPerLine' value=$nbol}
		{assign var='nbItemsPerLineTablet' value=($nbol-1)}
		{assign var='nbItemsPerLineMobile' value=($nbol-2)}
	{else}
        {if $page_name =='index' && ($hide_left_column xor $hide_right_column)}
            {assign var='nbol' value=3}
        {else}
            {assign var='nbol' value=4}
        {/if}
		{assign var='nbItemsPerLine' value=$nbol}
		{assign var='nbItemsPerLineTablet' value=($nbol-1)}
		{assign var='nbItemsPerLineMobile' value=($nbol-2)}
	{/if}
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...