Skip to main content

How to obtain Hikashop / Hikamarket version via PHP Code

More
6 years 10 months ago #313263 by PeterChain
-- 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.

More
6 years 10 months ago #313264 by nicolas
Hi,

Yes.
You can use such code for HikaShop:
Code:
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:
Code:
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.

More
6 years 10 months ago #313290 by PeterChain
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.162 seconds
Powered by Kunena Forum