VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: doorknob on July 14, 2008, 14:13:25 PM

Title: [FIXED] Bug in shop.browse.php
Post by: doorknob on July 14, 2008, 14:13:25 PM
I like the reworking of shop.browse. Unfortunately, an issue still remains. If the page shows only sub-categories without any products, an empty footer is shown. (there is also an unnecessary pair of php tags)
The code at lines 467 to 472
?>

<?php

$browsepage_footer 
$tpl->fetch'browse/includes/browse_pagenav.tpl.php' );
$tpl->set'browsepage_footer'$browsepage_footer );

should be replaced by
if ( $num_rows > 1 ) {
$browsepage_footer = $tpl->fetch( 'browse/includes/browse_pagenav.tpl.php' );
$tpl->set( 'browsepage_footer', $browsepage_footer );
}

regards
Phil
Title: Re: Bug in shop.browse.php
Post by: gregdev on July 14, 2008, 20:16:43 PM
Thanks. Fixed in SVN rev. 1470.

Greg