Magento Themes and Magento Extensions

Simple Magento Extension generator

Posted on June 24th, 2011 | Posted by admin

Writing Magento modules on a everyday basis can become extremely boring job when it comes to the part where you define your module directories, config file, model, block, helper, etc. What I am trying to say is that there is significant amount of repetitive work being done each time you start new module development. To compensate for this a little bit, I created this little Magento module that helps you create other modules. Hope it does not sound to much confusing.

To access the module functionality you need to install by copy-pasting the content of archive to your Magento installation and then open the http://mystore.loc/alpha url. I realize that using “alpha” for the module name is not much innovative. Basically you can look at this module as being a skeleton upon which you might build your own module generator. The code itself was done in a hasty way so it might need some refactoring if you wish to play with it. I plan on continuing my work on this module. This is just an alpha version :) .

Custom typography in Magento – @font-face

Posted on June 24th, 2011 | Posted by admin

If you want to add some juice to your e-commerce website, and be different from the others, you could add some custom fonts for you headings, product titles or prices.
The best technique these days, in my opinion, is to use browser’s native method: @font-face. With a little tweaking, you can make it work in almost all browsers.


The basic usage would be to add @font-face rule to your stylesheet, with a path to your font file.

@font-face {
font-family: KomikaDisplayRegular;
src: url(/KomikaDisplayRegular.otf);

Magento Project Stratus

Posted on June 24th, 2011 | Posted by admin

Guido Jansen recently broke the news of the new landing page at Magento’s official website that promotes so far unannounced service under the name of “Project Stratus“. This appears to be Magento in the cloud.

The project appears to be preparing for a closed beta testing and they are accepting applications. You can also enter your email to receive more information about the project once it becomes available.

The rumors of some sort of official Magento SaaS solution were out there for a while. I think I first read about such ideas more than a year ago. First time I heard of it, I was kind of worried that such a solution would significantly reduce the amount of work companies such as ourselves receive, since our work is mostly related to customizing Magento, and I didn’t know if there would be any way for us to continue doing this in a SaaS world.

Magento custom model with custom validation rules

Posted on June 24th, 2011 | Posted by admin

Creating your own Magento module usually goes along with creating your own models within the module. Either you write one or multiple models per module, its a good idea to implement model validation method which you might/should call prior to model save. Good example of Magento’s model that use validation are Mage_Customer_Model_Customer and Mage_Customer_Model_Address_Abstract models. Quick look into the “public function validate()” methods of those two models reveal the simplicity of validation process.

Usually the validation is done by utilizing the available Zend validation method “Zend_Validate::is($filter)” with various built in filters. Here are few examples:

IE9 fix for Magento

Posted on June 24th, 2011 | Posted by admin

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 usershave 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