News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Product module - productdetails div

Started by tonis, January 10, 2014, 14:48:29 PM

Previous topic - Next topic

tonis

Hello

I had a little trouble with the default product module ... the module displays one empty div after the products, which makes some troubles while css templating. Also, the class of the products was not the same. Folowing modification displays the exact number of divs and with the same class (like the firts one)

modules/mod_virtuemart_products/tmpl/default.php

line 56
change
if ($col == $products_per_row && $products_per_row && $col < $totalProd) {
echo " </div><div style='clear:both;'>";
$col = 1;
} else {
$col++;
}


to this
if ($col < $totalProd) {
echo " </div><div class='vmproduct".$params->get ('moduleclass_sfx')."productdetails'>";
$col++;
} else {
$col++;
}