Jump to content

Aligning products


timo@intrafin.be

Recommended Posts

Hi guys !

 

I have a small question.. on my page there are featured products, but like you'll be able to see (www.maxifun.com) they aren't sorted how they should be. Nicely aligned. 

 

For some reason, from the moment the description or title is a bit longer.. the boxes becomes bigger and therefore the line beneath it get's all screwed up.

 

Can you guys tell me how i can put a maximum height on those things or fixed height? That they're all the same and they align nicely?

 

An other much easier question is that the Topic Names: New Arrivals / Popular (not working for some reason) / Best Sellers are all going to White once selected... and White on White is not so .. readable.. where can i change this color?

 

Thanks in advance guys!

 

Link to comment
Share on other sites

The theme is adding stray classes to the list - it appears think there should be 6 items per row:

 

<li class="ajax_block_product col-xs-12 col-sm-4 col-md-3 first-in-line first-item-of-tablet-line first-item-of-mobile-line">

<li class="ajax_block_product col-xs-12 col-sm-4 col-md-3 last-item-of-mobile-line">
<li class="ajax_block_product col-xs-12 col-sm-4 col-md-3 first-item-of-mobile-line">
<li class="ajax_block_product col-xs-12 col-sm-4 col-md-3 last-item-of-tablet-line last-item-of-mobile-line">
<li class="ajax_block_product col-xs-12 col-sm-4 col-md-3 first-item-of-tablet-line first-item-of-mobile-line">
<li class="ajax_block_product col-xs-12 col-sm-4 col-md-3 last-in-line last-item-of-mobile-line">
<li class="ajax_block_product col-xs-12 col-sm-4 col-md-3 first-in-line last-line first-item-of-mobile-line">
<li class="ajax_block_product col-xs-12 col-sm-4 col-md-3 last-line last-item-of-tablet-line last-item-of-mobile-line">
<li class="ajax_block_product col-xs-12 col-sm-4 col-md-3 last-line first-item-of-tablet-line first-item-of-mobile-line">
<li class="ajax_block_product col-xs-12 col-sm-4 col-md-3 last-line last-item-of-mobile-line">
<li class="ajax_block_product col-xs-12 col-sm-4 col-md-3 last-line first-item-of-mobile-line last-mobile-line">
<li class="ajax_block_product col-xs-12 col-sm-4 col-md-3 last-in-line last-line last-item-of-tablet-line last-item-of-mobile-line last-mobile-line">

 

The first-in-line class on the 7th item is causing a new row to start and the presence of last-line on lines 7+ is causing vertical spacing issues.

Link to comment
Share on other sites

look at \themes\yourthemename\product-list.tpl

 

As for the second part of your question: that depends on your theme. Not every theme is exactly the same.

 

I don't get your point about "if all products are the same height". They should be the same height as that is how Prestashop is programmed.

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

As it is only on your homepage it might also be that product-list.tpl isn't used.

 

In that case you need to check the homefeatured module. It is under your modules directory but most likely also under the modules directory of your theme.

 

My first impression is that you have been tinkering with the code. Images that should be 220px are stretched to 280. No wonder that the six that should fit on a row don't fit.

 

As for the code: if you want somebody to study your code - good luck waiting. We are here to help each other. No to do an unpaid job.

  • Like 1
Link to comment
Share on other sites

I haven't done anything to the code that i know of :s i have changed things, but i don't know which anymore because the images were all blurry.. but the problem with the allignment was already there in the past.

 

And no i get that ... i don't ask for unpaid job.. but i have absolutly no clue and no formation in this... so i can't really think or do what's asked :s

Link to comment
Share on other sites

It doesn't switch the numbers out.

 

Have a look at my first post and then look at the code: why is first-in-line being output on the 1st and 7th items in the list?

 

Don't make assumptions about what value a variable should have.

 

Experiement with the code: try setting the number of items in a line to 2 - see if that makes a difference.

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