Skip to main content

place manufacturer logo under the product headline

More
11 years 6 months ago #196647 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

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

More
11 years 6 months ago #196655 by nicolas
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:
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>'; }
so it's a good start to modify to get what you want.
The following user(s) said Thank You: olliek

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

More
11 years 6 months ago #196738 by olliek
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
Powered by Kunena Forum