hikamarket my mpas location

  • Posts: 138
  • Thank you received: 4
6 years 1 week ago #300358

hi,
I use My maps location (component) for show vendor list in map.
but when click on Go to vendor page, link is crash.
ex: site.com/index.php/component/ hikashop/vendor/show/8-

how change hikashop in above url to hikamarket ?


Joomla Developer | am.ebrahimzadeh[at]gmail.com
Last edit: 6 years 1 week ago by aminweb.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 1 week ago #300360

Hello,

You should see that with the support of My Maps location.
I suppose that there is a typo and that the link is pointing to the wrong component.

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: 138
  • Thank you received: 4
6 years 1 week ago #300375

dont have support!!!!
please see this code :

public static function getUrlLink($item)
        {
            if ($item->id == 0) {
                return;
            }
            if (empty($item->component)) {
                $item->component = 'com_mymaplocations';
            }
            $params     = JComponentHelper::getParams('com_mymaplocations');
            $itemid     = MyMaplocationsHelper::getMenuId($item->component);
            $globalmenu = $itemid[$item->component];
            
            if ($item->component == "com_k2") {
                require_once(JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_k2' . DIRECTORY_SEPARATOR . 'helpers' . DIRECTORY_SEPARATOR . 'route.php');
                require_once(JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_k2' . DIRECTORY_SEPARATOR . 'helpers' . DIRECTORY_SEPARATOR . 'utilities.php');
                $url = urldecode(JRoute::_(K2HelperRoute::getItemRoute($item->extra_id . ':' . urlencode($item->k2alias), $item->k2catid . ':' . urlencode($item->k2catalias))));
            } else if ($item->component == "com_comprofiler") {
                global $_CB_framework;
                $url = $_CB_framework->userProfileUrl((int) $item->extra_id, false);
            } else if ($item->component == "com_hikamarket") {
                $furl = 'product&task=show&cid=' . (int) $item->product_id . '&name=' . $item->alias;
                if ($globalmenu) {
                    $furl .= '&Itemid=' . $globalmenu;
                }
                $url = hikashop_completeLink($furl);
            } else if ($item->component == "com_hikashop") {
                $furl = 'index.php?option=com_hikamarket&ctrl=vendor&task=show&cid=' . $item->extra_id . '&name=' . $item->vendor_alias;
                if ($globalmenu) {
                    $furl .= '&Itemid=' . $globalmenu;
                }
                $url = hikashop_completeLink($furl);
            } else if ($item->component == "com_community") {
                include_once(JPATH_BASE . '/components/com_community/defines.community.php');
                require_once(JPATH_BASE . '/components/com_community/libraries/core.php');
                $url = CRoute::_('index.php?option=com_community&view=profile&userid=' . $item->id);
            } else if ($item->component == "com_easysocial") {
                $url = $item->url;
            } else if ($item->component == "com_easyblog") {
                $url = $item->url;
            } else if ($item->component == "com_mytestimonials") {
                if (($globalmenu)) {
                    $url = JRoute::_("index.php?option=com_mytestimonials&view=testimonial&id=" . $item->id . "&Itemid=" . $globalmenu);
                } else {
                    $url = JRoute::_('index.php?option=com_mytestimonials&view=testimonial=' . $item->id);
                }
            } else if ($item->component == "com_ohanah") {
                if (($globalmenu)) {
                    $url = JRoute::_('index.php?option=com_ohanah&view=event&id=' . $item->id . '&format=html&Itemid=' . $globalmenu);
                } else {
                    $url = JRoute::_('index.php?option=com_ohanah&view=event&id=' . $item->id . '&format=html');
                }
            } else if ($item->component == "com_eventbooking") {
                require_once JPATH_ROOT . '/components/com_eventbooking/helper/helper.php';
                require_once JPATH_ROOT . '/components/com_eventbooking/helper/route.php';
                require_once JPATH_ROOT . '/components/com_eventbooking/helper/jquery.php';
                $url = JRoute::_(EventbookingHelperRoute::getEventRoute($item->id, 0, $globalmenu));
            } else if ($item->component == "com_zoo") {
                require_once(JPATH_ADMINISTRATOR . '/components/com_zoo/config.php');
                $app  = App::getInstance('zoo');
                $link = 'index.php?option=' . $app->component->self->name . '&task=item&item_id=' . $item->id;
                if ($globalmenu) {
                    $link .= '&Itemid=' . $globalmenu;
                }
                $link = JRoute::_($link);
                return $link;
            } else if ($item->component == "com_content") {
                
                if ((JFolder::exists(JPATH_SITE . '/components/com_flexicontent/'))) {
                    require_once(JPATH_SITE . '/administrator/components/com_flexicontent/defineconstants.php');
                    require_once(JPATH_SITE . '/components/com_flexicontent/helpers/route.php');
                    $link = JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug, null, $item));
                } else {
                    require_once JPATH_SITE . '/components/com_content/helpers/route.php';
                    $item->slug = $item->alias ? ($item->extra_id . ':' . $item->alias) : $item->extra_id;
                    
                    $link = JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catid));
                }
                return $link;
            } else if ($item->component == "com_adsmanager") {
                $url = @TRoute::_("index.php?option=com_adsmanager&view=details&id=" . $item->id . "&catid=" . $item->catid);
            } else if ($item->component == "com_djclassifieds") {
                require_once(JPATH_BASE . '/administrator/components/com_djclassifieds/lib/djseo.php');
                $url = JRoute::_(DJClassifiedsSEO::getItemRoute($item->id . ':' . $item->alias, $item->cat_id . ':' . $item->c_alias));
            } else {
                if ((@$item->extlink) && ($item->exturl)) {
                    if (strpos($item->exturl, 'menu:') !== false) {
                        $link     = explode(":", $item->exturl);
                        $menuitem = intval($link[1]);
                        $url      = JRoute::_('index.php?Itemid=' . $menuitem);
                    } else {
                        $url = $item->exturl;
                    }
                } else if (!empty($globalmenu)) {
                    $url = JRoute::_("index.php?option=com_mymaplocations&view=location&id=" . $item->id . "&Itemid=" . $globalmenu);
                } else {
                    $url = JRoute::_("index.php?option=com_mymaplocations&view=location&id=" . $item->id);
                }
            }
            $url = str_replace("'", "'", $url);
            return $url;
        }


Joomla Developer | am.ebrahimzadeh[at]gmail.com

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 1 week ago #300396

Hello,

They do have a support : www.joomunited.com/support-policy

But please understand that we do provide support for our components only.
I'm really sorry but it is not our support team to fix issues which are in other extensions, sold by other companies.

I will send an email to the team, telling them that they have a bug too look at.

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: 4
  • Thank you received: 0
6 years 1 week ago #300444

@aminweb
I am developer of my map locations.
the url we have generated is following as hikashop tag w have used for vendors

$furl = 'index.php?option=com_hikamarket&ctrl=vendor&task=show&cid=' . $item->extra_id . '&name=' . $item->vendor_alias;
if ($globalmenu) {
$furl .= '&Itemid=' . $globalmenu;
}

If possible please provide me FTP and joomla admin so i can take a look at the issue and try to fix it asap.
YOu can send me private message and i will take a look at it asap.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 1 week ago #300449

Hello,

If you want to generate an HikaMarket URL, best would be to use the Joomla JRoute object and not hikashop_completeLink (which is meant to create HikaShop links, not HikaMarket ones...)

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.077 seconds
Powered by Kunena Forum