Hi,
well, you don't tell much about the steps you've taken in order to achieve the 2 product per row layout, so I assume that whatever you "told" VM to do, it wasn't sufficient.
I'm not even sure what you've set in the Config/Site/Layout/Config setting: "no table". "fixed" or "default"?
1. Make sure that the Config settings in VM backend is correct:
- Browse page set to browse1
-
2. Make sure you have selected the Config/Site/Layout/Config setting: "
default".
Not the "fixed" option or "div based".
3. Make sure the Category view is also set correctly to browse1
- New categories inherit their settings from the configuration page but if you alter
the config page when having existing categories these changes are not inherited.
4. In the file /components/com_virtuemart/themes/default/browse/includes/browse_layouttable.tpl.php
you find the following at approx. line 11:
<?php
$data =array(); // Holds the rows of products
$i =
1; $row = 0; // Counters
Just edit the 1 into 2The important steps here are 2 and 4 above. The others we just do to make sure that you are consistent in your settings and that any future use or change in your shop and/or VM updates doesn't ruin your setup.
--------------------------------------------------------------------------------------------
Remember that the selection of DIV based or table based is important! DIV floats and tables are stuck. Also the width of your template decides (in relation to the size of your product layout of course) how many products you will be able to display in one row. (If you set to DIV based you cant' decide the number of products per row, since it all floats left. If there isn't enough room on the page, then maybe just one product fits and the next one is pushed down a row.)
--------------------------------------------------------------------------------------------
Now you wonder why this little "product per row" doesn't have a config setting?
The only thing I can say is welcome to VM and a world of learning.
You maybe want to check this thread out as well:http://forum.virtuemart.net/index.php?topic=43586.0TIP!You might want to consider copying the "default" theme above into your own theme directory and use that one instead. Any update of VM will otherwise erase the changes you make to any files in the "default" template.