- Posts: 640
- Thank you received: 16
How to obtain Hikashop / Hikamarket version via PHP Code
- PeterChain
-
Topic Author
- Offline
Less
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
-- 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.
6 years 10 months ago #313264
by nicolas
Replied by nicolas on topic How to obtain Hikashop / Hikamarket version via PHP Code
Hi,
Yes.
You can use such code for HikaShop:
And for HikaMarket:
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');
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.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
6 years 10 months ago #313290
by PeterChain
Replied by PeterChain on topic How to obtain Hikashop / Hikamarket version via PHP Code
Thanks a lot!!
This is what I need!
--
Victor
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