Brand Link on Product Page not working

  • Posts: 41
  • Thank you received: 0
10 years 3 months ago #202085

-- url of the page with the problem -- : furnitureandthings.com/index.php/product...eva-rocking-recliner
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.13
-- Browser(s) name and version -- : chrome

When i click on the brand under specifications I would assume it would then show all products in the brand section (which we have already created) but its showing other products NOT in that brand,

www.awesomescreenshot.com/image/234198/1...061411eef960f8292963

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

  • Posts: 84220
  • Thank you received: 13673
  • MODERATOR
10 years 3 months ago #202119

Hi,

Make sure that you have created one menu item of the type hikashop brands listing and that it works properly on its own. The system will then pick it up to generate the brand links on your product pages.
I checked your website and apparently you already have such menu item but the system is not picking it up.
It could be that either you have another menu item of that same type not configured properly, or that you have a view override of the view file "show_block_dimensions" from an old version where the brand link did take into account such brand menu item. So I would recommend to check that via the menu Display>Views.

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

  • Posts: 41
  • Thank you received: 0
10 years 2 months ago #202170

Yes there seems to be an override in that file from the template I purchased. Do you know what could I need to look for and change?

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 2 months ago #202218

Hi,

The best is to use the part of code which display the manufacturer in the current stable version (2.4.0):

if($this->config->get('manufacturer_display', 0) && !empty($this->element->product_manufacturer_id)){
	$class = hikashop_get('class.category');
	$manufacturer = $class->get($this->element->product_manufacturer_id);
	$menuClass = hikashop_get('class.menus');
	$Itemid = $menuClass->loadAMenuItemId('manufacturer','listing');
	if(empty($Itemid)){
		$Itemid = $menuClass->loadAMenuItemId('','');
	}
	$categoryClass = hikashop_get('class.category');
	$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>';
}
Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.110 seconds
Powered by Kunena Forum