VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: lysov on March 22, 2012, 15:12:53 PM

Title: The default module layout incorrectly displays items the second and below rows
Post by: lysov on March 22, 2012, 15:12:53 PM
VM 203G
The  default layout of mod_virtuemart_product (with style "div based") incorrectly displays items the second and subsequent series of products:
<div class="vmproduct">
<!-- the first row -->
   <div class="product floatleft width50 vertical-separator">...</div>
   <div class="product floatleft width50 vertical-separator">...</div>
</div>
<div style='clear:both;'>
<!-- the second row -->
   <div class="product floatleft width50 vertical-separator">...</div>
   <div class="product floatleft width50 vertical-separator">...</div>
</div>

For a correct displaying (the second row in the div vmproduct) is required to change the template modules/mod_virtuemart_product/tmpl/default.php
from
if ($col == $products_per_row && $products_per_row && $col < $totalProd ) {
echo " </div><div style='clear:both;'>";
$col= 1 ;

to
if ($col == $products_per_row && $products_per_row && $col < $totalProd ) {
echo " <div style='clear:both;'></div>";
$col= 1 ;
Title: Re: The default module layout incorrectly displays items the second and below rows
Post by: lysov on March 30, 2012, 10:18:33 AM
Subrelease VirtueMart 2.0.3H: nothing has changed for this topic.
Title: Re: The default module layout incorrectly displays items the second and below rows
Post by: jakobe on March 30, 2012, 23:50:28 PM
yes same thing here the layout goes beserk after the second row on random refreshes

joomla 1.7.5 & 2.5
VM 2.0.3h