Upsss… it’s 1 hour after midnight, still not sleeping. Hopefully I’ll manage to wake up in the morning, since I’m working. Anyhow… here’s a little something I made for you guys (for those who find it useful).
I was playing around with Zend Framework today, checking out available classes and methods. My eyes filled with yoj when I came across Zend_Wildfire_Plugin_FirePhp class. It’s located under /Zend/Wildfire/Plugin/FirePhp.php folder in ZendFramework. It’s around 600 hundred lines or so. What’s cool about this class is that it has this cool method you can use to shoot out messages to FireBug. If my info is correct, this class is added to ZendFramework from version 1.6. As of time of this writing, latest version of Magento is 1.2.0.1 and it comes packed with ZendFramework 1.7.2 which is also the latest version as of time of this writing. So, there you go, bingo. We now have this cool little class that can save as a bunch of time (or not). Read more…
Magento, PHP, ZendFramework
debugg, firebug, Magento, plugin
I’ll be short on this one. For those of you in Magento theme developement, if you ever see this message
Warning: SimpleXMLElement::addAttribute() [simplexmlelement.addattribute]: Attribute already exists
Most likely you have layout problem. So dive into your theme /layout folder and quick check to see if it relly is the messed up layout in your theme is to rename entire /layout folder to something like /_layout. This way Magento will propagate to using default theme /layout folder. If the refresehed page now works, you located the error to be in /layout folder. Now do the same for few of the files inside the layout folder.
In my example I have added the following into catalog.xml under section
<remove name=”tags_popular” />
And that caused my Customer page to be broken after customer logs in.
Hope this help someone.
Magento
attribute, Magento, simplexmlelement
Here is a little something to use on template/catalog/product/view.phtml page. I got few inquiries on how to get the “in_stock” status of a product. Here is a working sample code that shows different messages when and if the product is in stock or out of stock. Read more…
Magento
Magento, message, stock
Company I work for does Magento. And we are good at it
At least we think so. Our client often want Wordpress and Magento integration. This “integration” should be taken with more loosely terms in mind. Not gonna go in details of what I think by that.
Anyhow… One of the things we often do at client request is special Search functionality. Special in terms, choose to search from Articles (Wordpress) or Products (Magento). As you can see on the image below.

In order to avoid repaeating some code from Wordpress header file to Magetno header file I wrote a small class. Read more…
Magento
Magento, search, WordPress
Recently I wrote a post on Show products on sale in Magento. This one is somewhat of an upgrade to that post. In the previous post I mentioned, I had the case where I modified
app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php
There I made some changes to the _construct() function. In order to implement another cool feature in our grid/list category product view I will make some additional modifications to Toolbar.php and the _construct() function. Read more…
Magento
Magento, quantity, soled, sort
Recent comments