Author Topic: Products per row  (Read 2828 times)

audiophile121

  • Beginner
  • *
  • Posts: 2
Products per row
« on: November 06, 2010, 18:04:58 pm »
I have a browse page that I'm trying to customize to show 4 products per row, 3 rows.  The problem is, when there are less than 4 products in the last row, the width of the products are adjusted so that they are spaced evenly to fill the row.  I'm trying to adjust it so that the widths of each product container are fixed.  Styling .broseProductContainer doesn't work because there is a surrounding div that I can't figure out how it's getting generated.

What it's doing:
-------------------------
|  1  |  2  |  3  |  4  |
-------------------------
|  5  |  6  |  7  |  8  |
-------------------------
|   9   |  10   |  11   |
-------------------------  

What I'm looking for:
-------------------------
|  1  |  2  |  3  |  4  |
-------------------------
|  5  |  6  |  7  |  8  |
-------------------------
|  9  | 10  | 11  |
-------------------

My browse template is loosely based on browse_5.php and I'm relatively new to Virtuemart.

Any help would be much appreciated

zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: Products per row
« Reply #1 on: November 06, 2010, 19:33:36 pm »
Take a look at /administrator/components/com_virtuemart/html/shop.browse.php, which is the starting page. If i remember well, several templates are invoked from it.

With a little patience you may find what you are looking for.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

audiophile121

  • Beginner
  • *
  • Posts: 2
Re: Products per row
« Reply #2 on: November 13, 2010, 16:07:22 pm »
I eventually found it.  The page to tweak if you want to change products per row is /components/com_virtuemart/themes/<your-theme>/templates/browse/includes/browse_notables.tpl.php

nicnic

  • Beginner
  • *
  • Posts: 23
    • Late Night With ... Drawing
Re: Products per row
« Reply #3 on: September 27, 2012, 23:50:24 pm »
Hello audiophile121!

Can you explain me how you solved the last item missing in the last row problem?

What was that tweak?

Thanks!