Author Topic: Manufacture link in product details?  (Read 1999 times)

djgorandj

  • Beginner
  • *
  • Posts: 5
Manufacture link in product details?
« 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

Code: [Select]
<?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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28225
  • Always on vacation
    • Jenkin Hill Internet
Re: Manufacture link in product details?
« Reply #1 on: March 07, 2021, 11:48:46 am »
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14