Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open a support ticket. Only customers with active order(s) can open forum account!

× Discussion about "eCommerce" VirtueMart/Joomla template

Topic-icon Display manufacturers in product details

More
4 years 1 month ago - 4 years 1 month ago #34840 by MaxMi
MaxMi created the topic: Display manufacturers in product details
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: 4 years 1 month ago by MaxMi.

Please Log in to join the conversation.

More
4 years 1 month ago #34842 by ivan.milic
ivan.milic replied the topic: Display manufacturers in product details
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 to join the conversation.

More
4 years 1 month ago #34848 by MaxMi
MaxMi replied the topic: Display manufacturers in product details
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
4 years 1 month ago #34853 by ivan.milic
ivan.milic replied the topic: Display manufacturers in product details
Wrap that code with <!-- and --> that is HTML code commenting

Please Log in to join the conversation.

Time to create page: 0.085 seconds

Links, Partners and Social Media