VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: tonis on January 10, 2014, 14:48:29 PM

Title: Product module - productdetails div
Post by: tonis on January 10, 2014, 14:48:29 PM
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++;
}