× Discussion about "eCommerce" VirtueMart/Joomla template

Display manufacturers in product details

More
5 years 1 week ago - 5 years 1 week 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: 5 years 1 week ago by MaxMi.

Please Log in or Create an account to join the conversation.

More
5 years 1 week ago #34842 by ivan.milic
In

templates\hot_ecommerce\html\com_virtuemart\productdetails\default.php
<?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 or Create an account to join the conversation.

More
5 years 1 week 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 or Create an account to join the conversation.

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

Please Log in or Create an account to join the conversation.

Moderators: milos
Time to create page: 0.103 seconds