Jump to content

[solved] Space between products picture in product list


Recommended Posts

Hi,

 

I'm trying to have more space between the product which are displayed in the list.

I have increased the picture size in Preferences --> Picture, but it occurred that the pictures are now overlapping on themselves.

For instance : http://equipe4.ppaec...urriculum-vitae

 

By the way, if you know how to reduce / delete the column displayed on the left, it would be nice !

 

Thank in Advance !!

 

I'm staying at your disposal if you need further informations,

 

Hugo

Link to comment
Share on other sites

hello

 

you use non-default template so it's hard to say how your template files look like. But to remove left column you should check

header.tpl / footer.tpl located in yout theme directory

 

you probably have got there:

 

<div id="left_column" class="column" role="complementary"></div>

 

remove it. But also you have to change the width and float to the center column.

 

 

and question related to the product list:

you want to create more space between products vertically or horizontally?

Link to comment
Share on other sites

Hi,

 

you need to adjust the size of the elements which contain your products

If you have knowledges in css edit the file /themes/your-theme/css/product_list.css

Somewhere in this file you will find something like this :

.grid_view #product_list li { width: 230px; }

increase the width to fit the new size of your images

Link to comment
Share on other sites

And to remove the left column you need to change the width of "#category #center_column" from 980px to 100%

But you will have to find where, because it doesn't seem to be set in global.css (it is a responsive theme and there may be some custom css files...)

 

Regards

Link to comment
Share on other sites

Hi guys,

 

I would like to thank you both for helping me. The Prestashop community is so helpful.

 

1. I managed to increase the space between the product. Thank you very much for that.

2. I'm still trying to find the solution to remove the left column.

I have tried to modify the width of the central column in the theme.css and product.list.css but it didn't changed anything...

 

I will let you know if I succeed !

 

+++

Edited by Bino_Hugo (see edit history)
Link to comment
Share on other sites

I just removed the following condition in red but nothing happened.

It's actually the margin between the 1 and the 2nd product which is smaller.

http://equipe4.ppaecommerce.fr/7-lettre-de-motivation

I'am still trying.

 

+++

 

<ul id="product_list" class="clearfix">

{foreach from=$products item=product name=products}

<li class="ajax_block_product {if $smarty.foreach.products.first} first_item {elseif $smarty.foreach.products.last} last_item{/if} {if $smarty.foreach.products.index % 2} alternate_item{else}item{/if} {if $smarty.foreach.products.iteration%$nbItemsPerLine == 0}last_item_of_line mobile_no_margin{/if} {if $smarty.foreach.products.iteration%$nbItemsPerLinebig == 0}last_item_of_line_big{/if} clearfix">

<div class="left_block">

{if isset($comparator_max_item) && $comparator_max_item}

Link to comment
Share on other sites

Actually I had to replace value in red by "3".

Everything is allright now.

 

Thx you for helping me guys,

 

 

{if isset($products)}

{assign var='nbItemsPerLine' value=3}

{assign var='nbItemsPerLinebig' value=4}

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