How to obtain Hikashop / Hikamarket version via PHP Code

  • Posts: 634
  • Thank you received: 16
5 years 3 days 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: 82863
  • Thank you received: 13370
  • MODERATOR
5 years 2 days 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
5 years 2 days 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.061 seconds
Powered by Kunena Forum