UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Hikamarket Integration

Ivaylo Valkov · ·
9:29 AM Wednesday, 05 September 2018
None
Hi, I'm trying to add a link a Hikamarket profile to Easysocial. This code displays the correct information. I could not find instructions. It is possible to display an avatar and an popup profile card?


<?php
include_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php');
$user = JFactory::getUser();
$db = JFactory::getDbo();
$vendorClass = hikamarket::get('class.vendor');
$vendor = $vendorClass->get($variant->product_vendor_id,'vendor');
$userid = $vendor->vendor_admin_id;
$query = "SELECT `user_cms_id` FROM `#__hikashop_user` WHERE `user_id` = '" . $userid . "'";
$db->setQuery($query);
$hika_user_id = $db->loadResult();
$user_es = ES::user($hika_user_id);
var_dump($user_es->name);
?>
The replies under this section are restricted to logged in users or users with an active subscription with us