Why do I have to click a second button to view products under a manufacturer?

Started by bfahy, April 18, 2012, 23:56:38 PM

Previous topic - Next topic

betterlead

What the heck am I doing wrong? Second button shows up again after upgrading the template (flexiblewebdesign's LightMart from 1.0 to 1.1)

The code in the file is still the same. Or is it not? Could someone dear help to check it for me?

Cheers
/Betterlead

<div class="vmmanufacturer<?php echo $params->get('moduleclass_sfx'); ?>">
<?php foreach ($manufacturers as $manufacturer) {
$link JROUTE::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' $manufacturer->virtuemart_manufacturer_id);

?>

<div style="float:left;">
<a href="<?php echo $link?>">
<?php
if ($manufacturer->images && ($show == 'image' or $show == 'all' )) { ?>

<?php echo $manufacturer->images[0]->displayMediaThumb('',false);?>
<?php
}
if ($show == 'text' or $show == 'all' ) { ?>

<div><?php echo $manufacturer->mf_name?></div>
<?php
?>

</a>
</div>
<?php
if ($col == $manufacturers_per_row) {
echo "</div><div style='clear:both;'>";
$col;
} else {
$col++;
}
?>

</div>
<br style='clear:both;' />

<?php
} else {
$last count($manufacturers)-1;
?>


<ul class="vmmanufacturer<?php echo $params->get('moduleclass_sfx'); ?>">
<?php
foreach ($manufacturers as $manufacturer) {
$link JROUTE::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' $manufacturer->virtuemart_manufacturer_id);
?>
Live site runs on Joomla 3.9.24 & VM 3.8.6 10373

PHP: 7.3.26