Remove manufacturer field from specification tab

  • Posts: 21
  • Thank you received: 1
3 years 9 months ago #333105

Hi,
Pls help me to remove manufacturer field from specification tab.
I try to find this on show_tabular.php but I can not find any solution

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

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 9 months ago #333109

Hi,

It's in show_block_dimensions.php near the end. However, no need to change any code. Just turn off the "Display the brand" setting in the HikaShop configuration.

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

  • Posts: 21
  • Thank you received: 1
3 years 9 months ago #333117

I need the change the code
Pls help me to change, I don't know how to start

<?php
}

if($this->config->get('manufacturer_display', 0) && !empty($this->element->product_manufacturer_id)){
	$categoryClass = hikashop_get('class.category');
	$manufacturer = $categoryClass->get($this->element->product_manufacturer_id);
	if($manufacturer->category_published){
		$menuClass = hikashop_get('class.menus');
		$Itemid = $menuClass->loadAMenuItemId('manufacturer','listing','190');
		if(empty($Itemid)){
			$Itemid = $menuClass->loadAMenuItemId('','');
		}
		$categoryClass->addAlias($manufacturer);
		echo JText::_('MANUFACTURER').': '.'<a href="'.hikashop_contentLink('category&task=listing&cid='.$manufacturer->category_id.'&name='.$manufacturer->alias.'&Itemid='.$Itemid,$manufacturer).'">'.$manufacturer->category_name.'</a>';
		echo "<span style='display:none;' itemprop='brand'>". $manufacturer->category_name ."</span>";
	}

}

Last edit: 3 years 9 months ago by nicolas.

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

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 9 months ago #333119

Hi,

You could change the line:
if($this->config->get('manufacturer_display', 0) && !empty($this->element->product_manufacturer_id)){
to:
if(false){

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

Time to create page: 0.047 seconds
Powered by Kunena Forum