How to obtain Hikashop / Hikamarket version via PHP Code

  • Posts: 634
  • Thank you received: 16
4 years 5 months 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: 81484
  • Thank you received: 13062
  • MODERATOR
4 years 4 months 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: 634
  • Thank you received: 16
4 years 4 months 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.062 seconds
Powered by Kunena Forum