show picture and name vendor

  • Posts: 13
  • Thank you received: 0
8 years 4 months ago #245757

I want show picture and name vendor together in product page . like attachment file
how i can ?

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 4 months ago #245790

Hi,

First you will need to deactivate the display of the "sold by" in the HikaMarket configuration.
www.hikashop.com/support/documentation/1...onfig_market_display

Then you will need to manually display the vendor link in the product page (and product listing) ; to do that a view override will be required (or a plugin).
Even if the "sold by" won't be display directly by HikaMarket you will have access to the vendor details in the objects.

In the product page, you can access to the vendor details using

$this->element->vendor
That object will contain all vendor elements (that you can find in the database), like "vendor_name" or "vendor_description".
It will also contain the "vendor_image".
You can display an image thanks to the value in the "vendor_image" variable using some code ; you can find an example in that thread :
www.hikashop.com/forum/19-hikamarket/868...ountries.html#159234

In the product listing, you can access to the vendor details using
$this->row->vendor
The object will contain the exact same data than in the product page.

More about overrides :
www.hikashop.com/support/documentation/1...ize-the-display.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.

Moderators: Obsidev
Time to create page: 0.055 seconds
Powered by Kunena Forum