News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Manufacture link in product details?

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

Previous topic - Next topic

djgorandj

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:

/html/com_virtuemart/manufacturer/details.php

<?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>
</div>
<?php ?>

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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