Display manufacturers in product details

  • MaxMi
    Inactive member
  • Topic Author
  • Member
  • Member
More
11 years 5 months ago - 11 years 5 months ago #34840 by MaxMi
Hello,
I removed the flag "Show manufacterers " (virtuemart menu, configuration / configuration / templates) but template displays them anyway in the product details.

Can you tell me what should I change?

thanks
Last edit: 11 years 5 months ago by MaxMi.

Please Log in to join the conversation.

More
11 years 5 months ago #34842 by ivan.milic
In

templates\hot_ecommerce\html\com_virtuemart\productdetails\default.php
Code:
<?php // Manufacturer of the Product if(VmConfig::get('show_manufacturer', 1) && !empty($this->product->virtuemart_manufacturer_id)) { ?> <div class="manufacturer"> <?php $link = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id='.$this->product->virtuemart_manufacturer_id.'&tmpl=component'); $text = $this->product->mf_name; /* Avoid JavaScript on PDF Output */ if (strtolower(JRequest::getWord('output')) == "pdf"){ echo JHTML::_('link', $link, $text); } else { ?> <span class="bold"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_MANUFACTURER_LBL') ?></span><a class="modal" rel="{handler: 'iframe', size: {x: 700, y: 550}}" href="<?php echo $link ?>"><?php echo $text ?></a> <?PHP } ?> </div> <?php } ?>

you can just delete this code

Please Log in to join the conversation.

  • MaxMi
    Inactive member
  • Topic Author
  • Member
  • Member
More
11 years 5 months ago #34848 by MaxMi
Ok, but if one day I wanted to re-add the manufacturer should modify the code. If in the future you could "feel" the flag would be better.

Thank you very much!

Please Log in to join the conversation.

More
11 years 5 months ago #34853 by ivan.milic
Wrap that code with <!-- and --> that is HTML code commenting

Please Log in to join the conversation.

Time to create page: 0.155 seconds
Powered by Kunena Forum