Categories


Archives


Recent Posts


Categories


IE9 fix for Magento

astorm

Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

Updated for Magento 2! No Frills Magento Layout is the only Magento front end book you'll ever need. Get your copy today!

This entry is part 18 of 43 in the series Miscellaneous Magento Articles. Earlier posts include Magento Front Controller, Reinstalling Magento Modules, Clearing the Magento Cache, Magento's Class Instantiation Abstraction and Autoload, Magento Development Environment, Logging Magento's Controller Dispatch, Magento Configuration Lint, Slides from Magento Developer's Paradise, Generated Magento Model Code, Magento Knowledge Base, Magento Connect Role Directories, Magento Base Directories, PHP Error Handling and Magento Developer Mode, Magento Compiler Mode, Magento: Standard OOP Still Applies, Magento: Debugging with Varien Object, and Generating Google Sitemaps in Magento. Later posts include Magento's Many 404 Pages, Magento Quickies, Commerce Bug in Magento CE 1.6, Welcome to Magento: Pre-Innovate, Magento's Global Variable Design Patterns, Magento 2: Factory Pattern and Class Rewrites, Magento Block Lifecycle Methods, Goodnight and Goodluck, Magento Attribute Migration Generator, Fixing Magento Flat Collections with Chaos, Pulse Storm Launcher in Magento Connect, StackExchange and the Year of the Site Builder, Scaling Magento at Copious, Incremental Migration Scripts in Magento, A Better Magento 404 Page, Anatomy of the Magento PHP 5.4 Patch, Validating a Magento Connect Extension, Magento Cross Area Sessions, Review of Grokking Magento, Imagine 2014: Magento 1.9 Infinite Theme Fallback, Magento Ultimate Module Creator Review, Magento Imagine 2014: Parent/Child Themes, Early Magento Session Instantiation is Harmful, Using Squid for Local Hostnames on iPads, and Magento, Varnish, and Turpentine.

Update: The Ides of March were doing their thing yesterday. If you were have trouble getting the extension to work (even after the first update) re-download and you’ll be all set

Microsoft and The Internet Explorer team just released IE9 which, like every release, comes with a slew of improvements as well as a slew of problems for overworked web developers. The Magento ecommerce system uses and older version of the Prototype Javascript framework for ajax and DOM manipulation, and some users have reported problems with their stores and systems.

Whatever you may think of Microsoft Inc., their strategy, and the software it creates, there’s still a focus on providing some mechanism for backwards compatibility within their corporate culture. This includes the Internet Explorer team, which provides a custom <meta/> tag that will tell Internet Explorer to render things as though it was an older version of itself

<meta http-equiv="X-UA-Compatible" content="IE=8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />

Getting this tag into your document’s <head/> element is the quickest way to solve any problems you have with IE9, and according to Stack Overflow user Nicholas Piasecki it clears up Magento’s IE9 problems.

I’ve packaged up a quick Magento module that will automatically insert this tag into you page’s <head/> and clear up any problem you’re having due to Microsoft’s new browser. This will provide you with a working system while we wait to see if there’s an official patch coming from Magento Inc., or if it’s a situation that will be fixed in a future version of the cart.

While I’m polishing this up for an official Magento Connect release, I’d urge you to check all your sites/applications for IE9 compatibility and then fix them to work without a X-UA-Compatible tag. While it’s great that the IE team provides this mechanism it is, as best, a band-aid. Give your Windows users the experience they deserve, and you’ll reap the benefits.

Originally published March 15, 2011
Series Navigation<< Generating Google Sitemaps in MagentoMagento’s Many 404 Pages >>

Copyright © Alana Storm 1975 – 2023 All Rights Reserved

Originally Posted: 15th March 2011

email hidden; JavaScript is required