Add code

Thursday 28 January 2016

How can we find Magento version through code?

We may find the Magento website which version is using is now easy to find out.

Just open the path from your root folder /app/Mage.php

Near 168 line, you can find the following code :

   public static function getVersionInfo()
    {
        return array(
            'major'     => '1',
            'minor'     => '8',
            'revision'  => '1',
            'patch'     => '2',
            'stability' => '',
            'number'    => '',
        );
    }

It means we are using the 1.8.1.2 version.

No comments:

Post a Comment

Magento : 404 error is showing admin page

Hello, Sometimes we may get the error on admin page once done with the Magento installation. In that scenario, we have to do the following: ...