Jump to content

Product grid layout for prestashop v1.3 ?


Recommended Posts

Hi there!

I got the new version of prestashop v1.3 but how to put the product and category layout to gridview instead of list?
This is the defult: http://www.devy.se/category.php?id_category=6
This is how I want it: http://www.1.3.kreaweb.o2switch.net/3-accessoires-ipod

Used the 1.2 version before and the how to was here: http://www.freeprestashopmodules.com/2009/06/30/change-sub-categories-to-grid-view/

But how to do with the new version?

Thanks for your time and help

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 2 weeks later...

Really people who have asked about changing themes on here have all recommended using firefox and the firebug addon as you can then interrogate the css code:

Find this in your global.css file and look at the float: left part.

ul#product_list li {
border:1px solid #000;
float:left;
height:auto;
margin-bottom:4px;
margin-right:4px;
min-height:130px;
padding:5px;
}

Hope this helps but really you need to understand CSS so you can modify the theme...

Here is the link for firebug for firefox, you can then simply roll over the page to see what css needs changing...

https://addons.mozilla.org/en-US/firefox/addon/1843/

Link to comment
Share on other sites

Try this.

You will need to replace your product-list.tpl with the one in the zip and also copy and paste the code from the global.css file into the corect place in your global.css file

You will need to alter the color to suit your theme as its taken from the default presta theme.


Where exactly should I put the code in the global.css file? Where is the correct place?
Link to comment
Share on other sites

  • 8 months later...
Try this.

You will need to replace your product-list.tpl with the one in the zip and also copy and paste the code from the global.css file into the corect place in your global.css file.


I tried the above, but my products are still listed in List-view. I can not manage to get it in Grid view.
I use PS 1.3.7 an replaced the product-list.tpl and modified the global.css with your code (in the right section). Still no effect.

Do you have any ideas to correct this, maybe I am doing something wrong...
Link to comment
Share on other sites

You need to empty your smarty cache by deleting all the files in tools/smarty/compile on your server, and also clear your browser cache


Already did this. No effect. Also tried different browsers. Maybe something else?
Link to comment
Share on other sites

@ jhnstcks: yes...it works!!! :-)
probably it was a caching problem of my browser I think. I will take a look tonight when I'm home. I did clean everything in my browser, but maybe something went wrong.

Now my products are in grid view, and I must finetune some things.

Thank you very much for your code!

Link to comment
Share on other sites

  • 2 weeks later...
one more issue before my grid view is perfect ;-)

How can I manage to get the buttons under the last row (right aligned in the center column) when there are, for example, 8 products on a page? See attachment..


found the solution in this topic: http://www.prestashop.com/forums/viewthread/11322/P15/integration/products_layout_in_subcategories

just add the following code just before the {/if} in product-list.tpl (insert line 21/22):



  • Like 1
Link to comment
Share on other sites

  • 8 months later...
  • 4 weeks later...

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