- Posts: 5
- Thank you received: 0
place manufacturer logo under the product headline
11 years 6 months ago #196647
by olliek
place manufacturer logo under the product headline was created by olliek
-- url of the page with the problem -- :
unbrkn.de/shop/product/13-fran-happened.html
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
Hi,
I would like place the manufacturer logo and the link under the headline in product view. But I can't find the right file to realize it. Can you help me please?
Best regards
Ollie
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
Hi,
I would like place the manufacturer logo and the link under the headline in product view. But I can't find the right file to realize it. Can you help me please?
Best regards
Ollie
Please Log in or Create an account to join the conversation.
11 years 6 months ago #196655
by nicolas
Replied by nicolas on topic place manufacturer logo under the product headline
Hi,
You'll have to add your custom code in the file "show_tabular" (because you're using the "tabular" product page layout) that you can edit for your frontend template via the menu Display>Views.
Here is the code which displays the brand name and link in the "specification" tab:
so it's a good start to modify to get what you want.
You'll have to add your custom code in the file "show_tabular" (because you're using the "tabular" product page layout) that you can edit for your frontend template via the menu Display>Views.
Here is the code which displays the brand name and link in the "specification" tab:
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>';
}
The following user(s) said Thank You: olliek
Please Log in or Create an account to join the conversation.
11 years 6 months ago #196738
by olliek
Replied by olliek on topic place manufacturer logo under the product headline
Thank you very much, it works perfect now
Please Log in or Create an account to join the conversation.
Time to create page: 0.157 seconds