- Posts: 85
- Thank you received: 0
Vendor Image in product page
10 years 5 days ago - 10 years 5 days ago #250831
by palee3
Vendor Image in product page was created by palee3
-- 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
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
Code:
<?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=""/>
Last edit: 10 years 5 days ago by palee3.
Please Log in or Create an account to join the conversation.
10 years 5 days ago #250834
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Vendor Image in product page
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,
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.
Please Log in or Create an account to join the conversation.
10 years 4 days ago - 10 years 4 days ago #250909
by palee3
Replied by palee3 on topic Vendor Image in product page
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.
I was careless, because this is really a HikaMarket code.
Last edit: 10 years 4 days ago by palee3.
Please Log in or Create an account to join the conversation.
10 years 4 days ago #250911
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Vendor Image in product page
Hi,
With right words you can perform right search :
www.hikashop.com/forum/4-how-to/79658-sh...in-product-view.html
Regards,
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.
Please Log in or Create an account to join the conversation.
10 years 4 days ago #251001
by palee3
Replied by palee3 on topic Vendor Image in product page
Hi,
Indeed and thank you for the support, works fine. But the code changed a little bit, but I found it.
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.167 seconds