Acess Category Explorer from a 3rd party module

  • Posts: 272
  • Thank you received: 3
  • Hikashop Business
8 years 11 months ago #224738

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5

We are working on integrating hikashop into roksprocket by Rockettheme so that hikashop products can be selected and displayed in a roksproket module. We working on the selection of specific hikashop products. The product selection opens in a popup window and we can list all the products. We would like to user the Explorer tree to filter the categories. Is it possible to access and display the Explorer from a a third party module?

Does the following topic have any relevance?

Frontend Full Category Tree as Backend

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 11 months ago #224751

Hi,

The category explorer can be displayed from anywhere in HikaShop with the function hikashop_setExplorer once you initialize the HikaShop main helper.
For example:

<?php 
if(!defined('DS')) define('DS',DIRECTORY_SEPARATOR);
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;
echo hikashop_setExplorer('product&task=selectrelated&select_type='.$this->type.'&control='.$this->control,$this->pageInfo->filter->filter_id,true,'product'); ?>
That is used for the display of the explorer in the popup for selecting related products with the old interface of the product edition page (file 'selectrelated' of the view "product").
So it's not impossible to have it displayed from a 3rd party module, but it's not that simple as the first parameter is supposed to be a HikaShop controller. It will require some tinkering.

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

  • Posts: 272
  • Thank you received: 3
  • Hikashop Business
8 years 10 months ago #225694

Hi Nicolas, I hope you all had a good Christmas. Thanks for the pointer. I'll let you know how we get on. Thanks, James

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

Time to create page: 0.061 seconds
Powered by Kunena Forum