Recently I encountered a bug described by fragilem17 at http://www.magentocommerce.com/boards/viewthread/51403/. Because the project I work on strongly rely on bundled products with custom options I needed to find solution to this problem. It wasn’t placed on Magento roadmap so I decided to try to solve it on my own. After spending over two days and producing 5 lines of code I guess I might win the slowest programming competition, but finally the module is fixed More »
Yesterday I had luck to pass Zend PHP 5 Certification Exam. There are different opinions about difficulty of Zend exam comparing to mock tests. I think they are on quite similar level. There were some tricky questions that require practical knowledge of PHP. It’s one of these situations when you get rewarded for banging your head against a brick wall while trying to solve bugs in PHP code. I used to be skeptical about exams (especially about tests) but it seems it would be hard to pass ZCE with just basic knowledge of PHP. All in all passing Zend Exam made my day!
Image manipulation in Magento is quite easy thanks to Varien_Image class defined in lib/Varien/Image.php file. Here’s a self-explained example of basic usage of this class: More »
Using event-observer pattern is simple yet powerful method to implode your own code into critical moments of application lifetime. Magento defines vast range of different events – just have a look at list of events for Magento 1.3.0 created by Branko Ajzele to get idea of various aspects of application flow you can amend just by using event-observer More »
Thanks to Simon Fuller from smartebusinessTM, Magento developers in the Manchester area have opportunity to meet and exchange experience. The event will take place on 20th of August at The Bank, 57 Mosley St, Manchester.
Hope to see you there
While Magento has been designed with best e-commerce practices in mind, it is sometimes desirable to change it’s default behavior to meet our specific requirements. In one of my recent projects shop was configured to accept two payments for the same shipping service – flat rate for smaller purchases and free shipping when customer spends higher amount of money. In this case it’s reasonable to present only one method depending on the total purchase and automatically preselect this option (saving customer More »
In this tutorial I show how in easy way create the module that will allow user to browse products by attribute options and categories. This will be done using custom controller and attributes passed by URL which will make our site more SEO friendly.
It is worth to notice that Mage_Core_Model_Abstract class comes with special event properties: $_eventPrefix and $_eventObject. These values will be used when dispatching events on most common operations. For example, when saving an object into database, two events More »
Today I was stuck with importing category tree to Magento store. The task seemed quite straightforward and I decided to use the catalog_category API to be able to update both the dev and live site directly from my local machine. As the tree was quite complex More »
In Magento admin you can set email addresses for specific tasks (see System->Configuration->Store Email Addresses). As I was asked to create a module for sending PDF invoices after successful purchase, I needed to get the general More »


