Vendor Image in product page

  • Posts: 85
  • Thank you received: 0
7 years 6 months ago #250831

-- HikaShop version -- : 2.6.4

I would like to display the vendor image instead a text with link. I turned on display vendor name in the configuration. I searched for any post related in the subject, and I find only a half solution, what is not really works.

On the product page product / show_default I try to paste the following code (what I found here ) in a div around the hikashop_product_price_with_options_main

<?php
	$vendor_image = null;
	$imageHelper = hikamarket::get('shop.helper.image');
	if(!empty($this->vendor->vendor_image))
		$vendor_image = $imageHelper->getThumbnail($this->vendor->vendor_image, array(100,100), array());
	if(empty($vendor_image) || !$vendor_image->success)
		$vendor_image = $imageHelper->getThumbnail($this->config->get('default_vendor_image', ''), array(100,100), array('default' => true), true);
?>
<img src="<?php echo @$vendor_image->url; ?>" alt=""/>

Attachments:
Last edit: 7 years 6 months ago by palee3.

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
7 years 6 months ago #250834

Hi,

The code you're referring is for HikaMarket ; but we do not need any HikaMarket license in your account.
Are you using HikaMarket in your website ?
If so, can you please provide more details about "not really works" means ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 85
  • Thank you received: 0
7 years 6 months ago #250909

My bad, sorry for that. No no I don't use HikaMarket. I just tried to search after how can I display a Brand image with the text and/or instead the text.

I was careless, because this is really a HikaMarket code.

Last edit: 7 years 6 months ago by palee3.

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
7 years 6 months ago #250911

Hi,

With right words you can perform right search :
www.hikashop.com/forum/4-how-to/79658-sh...in-product-view.html

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 85
  • Thank you received: 0
7 years 6 months ago #251001

Hi,

Indeed and thank you for the support, works fine. But the code changed a little bit, but I found it.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum