Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opencart check the vqmod version installed

Tags:

php

opencart

Is there any way to check the version of vqmod which is installed from within the extension of opencart?

I am having far too many users send me support emails and the majority of the time its because they need to upgrade vqmod. I want to add a warning message saying they need to upgrade vqmod.

like image 452
John Magnolia Avatar asked Dec 15 '22 17:12

John Magnolia


2 Answers

To check which version of VQMOD you are running open the file.. /vqmod/vqmod.php look on line 7 for... private $_vqversion = '2.3.2';

like image 132
Elliot Avatar answered Dec 29 '22 01:12

Elliot


vQmod's version number is private and only there for the purposes of letting a user know the version. I guess you could load the file and use a regex to find the version number. My concern is just what you're using that is incompatible. vQmod is backward compatible right back to 1.0 from the latest version. The simplest answer is to make it clear on your extension that version X is required or later of vQmod for your extension to be compatible. I sell over 40 mods, the majority of which are vQmodded in some way or another and I've not come across this with my customers

like image 36
Jay Gilford Avatar answered Dec 29 '22 01:12

Jay Gilford