Categories


Recent Posts


Archives


Magento Javascript Events

Any Magento developer worth their salt is familiar with Magento's PHP based event system. This critical piece of functionality provides for unobtrusive tweaks to Magento's functionality. Less talked about is Magento's frontend event system used by the admin console. This article seeks to shed

astorm

Javascript Debugging in Magento

Hard to believe I haven’t mentioned this one before, but if you’re going to be doing javascript development in Magento, you’ll want to look in the following file js/varien/js.js and comment out or nullify the following code if (!("console" in window) || !("firebug" in console)) { var names = ["log", "debug", "info", [...]

astorm

PHP’s WSDL Caching Files

Although the latest version of Magento offers the ability to control how PHP caches the SOAP server’s WSDL file, and my own Mercury API extension offers similar functionality for older version of Magento, sometimes the WSDL caching can still bite you in the butt. While the above features control the caching at the server level, if [...]

astorm

Widget Data and How Hard Can It Be?

Widget Data and How Hard Can It Be? This Stack Overflow question is a nice example of how something that seems simple (querying for and updating a widget instance’s data paramaters) can be harder than you think. Most Magento projects go off the rails because someone assumes something like this is easy, and then modern company [...]

astorm

Magento’s SOAP V2 Adapater

If you've been following along, it may seem like we've reached the end of our API series. We've covered routing and controller dispatch, the API server, configuration, adapters, handlers, and the use of the response object for direct API output. I imagine there were

astorm

Can’t echo a Child Block?

If you’re having trouble with a call like echo $this->getChildHtml('foo'); returning an empty string, add the following debug code to your template var_dump(array_keys($this->_children)); This will print out all the children of the current block. If you don’t see the block you’re trying to echo above, that means [...]

astorm

The Magento API

I've been wanting to write about the Magento API for a long time, but it's one of those slippery topics that has no clean entry point. It's easy to talk about small slices of the API, or provide tricks for using the API methods

astorm

Magento Block Lifecycle Methods

There's two design patterns used in PHP systems that are often conflated. First, there's the event/observer pattern. This pattern allows a system-developer to issue global events which client-developers may then setup listener object/methods/functions for. These listeners observe the event, and then perform some action

astorm
email hidden; JavaScript is required