Skip to main content

brands

More
11 years 11 months ago #177167 by electroadi
brands was created by electroadi
-- 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.

More
11 years 11 months ago #177212 by lousyfool
Replied by lousyfool on topic brands
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.
Code:
<?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.

More
11 years 11 months ago #177169 by Mohamed Thelji
Replied by Mohamed Thelji on topic brands
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.

More
11 years 11 months ago #177849 by electroadi
Replied by electroadi on topic brands
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.

More
11 years 11 months ago #177880 by nicolas
Replied by nicolas on topic brands
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.187 seconds
Powered by Kunena Forum