- Posts: 41
- Thank you received: 0
Brand Link on Product Page not working
11 years 4 months ago #202085
by gteigland
Brand Link on Product Page not working was created by gteigland
-- 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
-- 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.
11 years 4 months ago #202119
by nicolas
Replied by nicolas on topic Brand Link on Product Page not working
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.
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.
11 years 4 months ago #202170
by gteigland
Replied by gteigland on topic Brand Link on Product Page not working
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.
11 years 4 months ago #202218
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Brand Link on Product Page not working
Hi,
The best is to use the part of code which display the manufacturer in the current stable version (2.4.0):
Regards,
The best is to use the part of code which display the manufacturer in the current stable version (2.4.0):
Code:
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>';
}
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.195 seconds