How to obtain Hikashop / Hikamarket version via PHP Code

  • Posts: 618
  • Thank you received: 16
  • Hikamarket Multivendor Hikashop Business
2 months 4 weeks ago #313263

-- HikaShop version -- : 4.2.2
-- HikaMarket version -- : 3.0.2

Hi,

Is there a easy way to know which version of Hikashop and Hikamarket is installed on my website using a function?

Thanks in advance.

--
Victor

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

  • Posts: 68132
  • Thank you received: 10158
  • MODERATOR
2 months 4 weeks ago #313264

Hi,

Yes.
You can use such code for HikaShop:

if(!defined('DS'))
	define('DS', DIRECTORY_SEPARATOR);
include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php');
$config = hikashop_config();
echo $config->get('version');
And for HikaMarket:
if(!defined('DS'))
	define('DS', DIRECTORY_SEPARATOR);
include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikamarket'.DS.'helpers'.DS.'helper.php');
$config = hikamarket::config();
echo $config->get('version');

The following user(s) said Thank You: PeterChain

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

  • Posts: 618
  • Thank you received: 16
  • Hikamarket Multivendor Hikashop Business
2 months 4 weeks ago #313290

Thanks a lot!!

This is what I need!

--
Victor

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

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