Author Topic: Customise product list layout like this?  (Read 2602 times)

shakir

  • Jr. Member
  • **
  • Posts: 66
Customise product list layout like this?
« on: November 10, 2011, 14:01:01 pm »
Hi all.

Could someone please steer me in the right direction to edit the products list within a category so it looks more like the attached image.

Ideally I need to make the products listings display 4 across. (I have a template that is 1000px wide but even when I tell VM2 to display 4 products wide, its only displaying 3.
I guess because the text etc is taking up too much room. *VERY much like this : http://www.asos.com/Women/Dresses/Cat/pgecategory.aspx?cid=8799

Also, does anyone know if the dynamic thumbnail resize option is supposed to be working in the latest RC or is it still not working?
Doesn't change thumbnail sizes on mine so was wondering if something is wrong or its just not implemented yet.

Thanks :)


[attachment cleanup by admin]

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: Customise product list layout like this?
« Reply #1 on: November 10, 2011, 14:21:23 pm »
you have to change EACH category to say 4. IF the categories were created WHEN the configuration still said 3.

DELETE, all images in the resize folder. THEN, when a page is requested, the new sizes will be created.

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

shakir

  • Jr. Member
  • **
  • Posts: 66
Re: Customise product list layout like this?
« Reply #2 on: November 10, 2011, 14:33:16 pm »
Good tip, worked! :)

As for re-positioning the layout of the products list like in above image.
Should this be done via the css or php file?

Thanks.

shakir

  • Jr. Member
  • **
  • Posts: 66
Re: Customise product list layout like this?
« Reply #3 on: November 10, 2011, 14:48:17 pm »
I spoke too soon... products per row worked great but the resize didnt work.
I deleted all images from folder.
Resized them in config.
Refreshed the page and yes it did recreate them in the folder but the display size in front end didnt change at all.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

shakir

  • Jr. Member
  • **
  • Posts: 66
Re: Customise product list layout like this?
« Reply #5 on: November 10, 2011, 15:54:27 pm »

It seems like something scales down the thumbnail sizes each time you add one more to default number displayed per row.
When I make it 3 across, the images are bigger, 2 bigger still. at 4 across they are very small. Even though I have resized them globally to be larger.


PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: Customise product list layout like this?
« Reply #6 on: November 10, 2011, 16:10:30 pm »
because the css applied is making it scale.

YOU have to change the template to fit your needs,

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

shakir

  • Jr. Member
  • **
  • Posts: 66
Re: Customise product list layout like this?
« Reply #7 on: November 10, 2011, 16:36:52 pm »
Success!
http://deliciousdesign.com.au/test/index.php?option=com_virtuemart&view=category&virtuemart_category_id=1&Itemid=20
*Just my test site.
Looks close to how I want it.
Although I'm not 100% sure if my method for doing this is good or not.

I edited the css.
line 125:         .floatright,span.floatright{float:right;}     to       .floatright,span.floatright{}
and line 127 I COMPLETELY REMOVED this:   .width30{width:30%;}
I hope this doesn't come back to bite me!

Now is there a way to save this as some type of css over-ride so when I update next RC it wont undo?

Thanks ;)

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: Customise product list layout like this?
« Reply #8 on: November 10, 2011, 16:48:55 pm »
copy the css file. Place it in your template folder. Then disable virtuemart css. THEN, add it to your template
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)