brands

  • Posts: 14
  • Thank you received: 0
10 years 9 months ago #177167

-- url of the page with the problem -- : 5.10.105.46/~yamitysb
-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3

hey'
how do i show the brands (Manufacturer) image in the products page instead of the brands name?

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

  • Posts: 2143
  • Thank you received: 747
10 years 9 months ago #177212

Hi,

Assuming you are familiar with the views and their edition as described in the documentation, you could insert the following code where you see fit. It worked for me.
Note that the "if" condition is still in, so the display should depend you setting the respective switch in the configuration right.

<?php
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, true);
	global $Itemid;
	$categoryClass = hikashop_get('class.category');
	$categoryClass->addAlias($manufacturer);
	echo $this->image->display($manufacturer->file_path,false,$manufacturer->file_name, '', '', $this->image->main_thumbnail_x, $this->image->main_thumbnail_y);
}
?>


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #177169

Hello,
A simple solution which won't require any code customization will be to directly add your manufacturer image through your prduct description.

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

  • Posts: 14
  • Thank you received: 0
10 years 9 months ago #177849

can you tell me on which view i should insert the code?
something else i might be doing wrong?
thanx
adi

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

  • Posts: 84220
  • Thank you received: 13672
  • MODERATOR
10 years 9 months ago #177880

Hi,

You can add that code in the file "show_block_dimensions" via the menu Display>Views

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

Time to create page: 0.060 seconds
Powered by Kunena Forum