Each Magento version has the strengths and weaknesses. To upgrade your Magento to the latest version to solve the speed load, security issues or to install a new extension, which should be compatible with your Magento version (some modules require Magento 1.9+), you need to check the Magento current version first.
There are at least 4 different options to find it out:
1. Use free online tools to check the version just entering your website address, e.g.: MagentoVersion.com;
2. Check your version via the admin panel:
Find ‘Mage_All_Latest’ in the ‘Package Name’ column. The number X.X.X.X (stable) is the version you’ve looked for.
3. Check the version in the app/Mage.php file of your Magento installation. Look for getVersionInfo() function there, e.g.:
4. Use SSH to learn the version. Login to server via SSH using the root password, navigate to the directory where Magento is installed and type the following command cd /home/username/public_html php -r “include ‘app/Mage.php’; echo ‘Magento version is: ‘, Mage::getVersion(); ”.
The most effortless way to get your Magento 2 version is to add /magento_version to the website address and start searching. You will see a short answer including the version and edition you use, e.g.: Magento 2.1 (Enterprise);
1. The easiest way to find it out is to enter example.com/giftcard/customer in your browser:
2. You can also check the Magento version via the command line by the code Mage::getEdition() that is to give you all the necessary information, e.g.:
* Magento edition constants
const EDITION_COMMUNITY = 'Community';
const EDITION_ENTERPRISE = 'Enterprise';
const EDITION_PROFESSIONAL = 'Professional';
const EDITION_GO = 'Go';
* Current Magento edition.
* @var string
static private $_currentEdition = self::EDITION_COMMUNITY;
* Get current Magento edition
* @return string