Looking for documentation? Take a look on our wiki

Main Menu

Manufacture link in product details?

Started by djgorandj, March 06, 2021, 16:43:40 PM

Previous topic - Next topic


My code get this url: index.php/sr/categories/manufacturer/sketchers/0/  ***** o is wrong category id, how to get right link, this code not working propertly:


<?php // Manufacturer Product Link
$manufacturerProductsURL JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' $this->manufacturer->virtuemart_manufacturer_idFALSE);

if(!empty($this->manufacturer->virtuemart_manufacturer_id)) { ?>

<div class="manufacturer-product-link">
<a target="_top" href="<?php echo $manufacturerProductsURL?>"><?php echo vmText::sprintf('COM_VIRTUEMART_PRODUCT_FROM_MF',$this->manufacturer->mf_name); ?></a>
<?php ?>


Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum