4

While browsing some sites that built on Magento, how do you tell if it based on 1.x or 2.x.

I do have Built-with extension in Chrome, but prefer manual approach.

Thanks!

  • 2
    View source on any stock CSS or JavaScript. The copyright notice leaks this info like a seive. – Fiasco Labs Apr 12 '16 at 4:08
15

View the page source can check the CSS location.

Magento 1 css file is located here:

mainfolder/skin/frontend/spacename/themename/css/css files

Magento 2 css file is located here:

mainfolder/pub/static/frontend/spacename/themename/locale/css/css files

3

Clues for Magento 1.x:

  1. In page source, there should be words like:

    • varien
    • skin/frontend
    • media
  2. When trying to hit URL [website_url]/downloader, it should show Magento Connect page (if downloader has not been removed/renamed)

  3. When trying to hit URL [website_url]/install.php, it should show error:

    • FAILED ERROR: Magento is already installed
  4. Default URL for contact us page is [website_url]/contacts in Magento 1.x

Clues for Magento 2.x:

  1. In page source, there should be words like:

    • pub/static/frontend
  2. Default URL for contact us page is [website_url]/contact in Magento 2.x

  3. When trying to hit URL [website_url]/magento_version, it should show Magento's major version and edition like:

    • Magento/2.x (xxx)

Note: One more way to check Magento version is check website in https://www.magereport.com/ under Outdated Magento version section.

I hope, it would be more clear now.

  • Great and Acceptable Answer:) – akgola Dec 7 '17 at 10:58
2

Also, adding one more way to check if the website is in Magento 1.x or Magento 2.X.

Magento 2: Mage cookies script tag will be as follows:

<script type="text/x-magento-init">
    {
        "*": {
            "mage/cookies": {
                "expires": null,
                "path": "/",
                "domain": ".www.example.com",
                "secure": false,
                "lifetime": "3600"
            }
        }
    }
</script>

Magento 1 : Mage cookies script tag will be as follows:

<script type="text/javascript">
//<![CDATA[
Mage.Cookies.path     = '/';
Mage.Cookies.domain   = '.example.com';
//]]>
</script>
1

you can check it using page view source, At top display require js declaration like,

<script>
    var require = {
        "baseUrl": "{{project url}}/pub/static/frontend/{Packagename}/{theme}/en_US"
    };

Also you can check it using searching pub/static/frontend/ path for js and css file.

Another way is default magento contact us page, in Magento 1, contact-us link is display , www.projectname.com/contacts where magento 2, contacts link is www.projectname.com/contact

Thanks.

1

Check with https://builtwith.com/. In Ecommerce section it shows Magento if the site is built in Magento.

  • If it is Magento 1 site, Ecommerce section shows Magento only.
  • If it is Magento 2 site, Ecommerce section shows Magento 2 inside Magento section.
  • It also mentions if it is a Magento Enterprise edition.
0

View the source and search for any of these terms:

text/x-magento-init
getTemplate()
Magento_Ui/js/core/app

If you find them, it's Magento 2!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.