News:

Looking for documentation? Take a look on our wiki

Main Menu

Virtuemart manufacturer_id not work on product detail page

Started by AnthonyWang, January 25, 2016, 15:14:57 PM

Previous topic - Next topic

AnthonyWang

Hi there,
I tried <?php echo $this->product->virtuemart_manufacturer_id; ?> on prdict detail page,but it not work,
i tried many different way,but all not working,please help

Joomla 3.4.8
Virtuemart 3.0.12
Currently using :
Joomla 3.6.5 / Virtuemart 3.2.1 / PHP 5.5.9-1ubuntu4.17

jenkinhill

Code used in VM productdetails default template is

<?php
      // Manufacturer of the Product
      if (VmConfig::get('show_manufacturers', 1) && !empty($this->product->virtuemart_manufacturer_id)) {
          echo $this->loadTemplate('manufacturer');
      }
      ?>
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