VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: djgorandj on March 06, 2021, 16:43:40 PM

Title: Manufacture link in product details?
Post by: djgorandj on March 06, 2021, 16:43:40 PM
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 ?>
Title: Re: Manufacture link in product details?
Post by: jenkinhill on March 07, 2021, 11:48:46 AM
Please do not crosspost.

http://forum.virtuemart.net/index.php?topic=146449.msg521155#msg521155