Manufacturer description on product pages

  • Posts: 281
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
9 years 5 months ago #235286

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.0
-- PHP version -- : 5.4.26
-- Browser(s) name and version -- : Firefox 45.0.1
-- Error-message(debug-mod must be tuned on) -- : None

How can I get the Brand/Manufacturer Image, Name and Description to appear just below the product description on the product pages?

Thank you!

Last edit: 9 years 5 months ago by a2zcs.

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

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 5 months ago #235291

Hi,

You'll have to edit the view file you're using for your product page layout ( it's show_default by default) and add such code:
www.hikashop.com/forum/product-category-...uct-view.html#222218

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

  • Posts: 281
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
9 years 5 months ago #235354

Thank you for the quick response, but the code only shows a broken image and doesn't show Manufacturer name or description.
I placed the code at the end of the show_default, just before the last </div>

Attachments:

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

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 5 months ago #235361

Hi,

Can you give a link to the page ?
Also, please note that we provide "user support" not "developer support".
We're happy to give hints to developers so that they can move forward with their code modifications and small pieces of code when possible. But our purpose isn't to provide working ready-made code changes to everyone who ask something that is not possible with the options by default.

The code to display the brand name is available in the file show_block_dimensions:

$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');
		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).'" itemprop="brand" itemscope itemtype="http://schema.org/brand">'.$manufacturer->category_name.'</a>';
	}
if you activate the "brand display" setting of the HikaShop configuration, that will will display the brand name on the product page.
And from that code, you can deduce the brand description display.
Instead of $manufacturer->category_name, you can use $manufacturer->category_description

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

Time to create page: 0.057 seconds
Powered by Kunena Forum