Hello everyone, short while after I wrote article Add custom attribute to Magento’s PDF invoice I received quite a number of requests for explanation on how to add products images to PDF invoice. As I had some time, I’ve created an extension that will do just that.Read more
Hello everyone! Today I’ll show you how to add custom attribute to Magento’s generated PDF invoice in just a few steps. Since this article is pretty straight-forward, here we go.Read more
I took some time to install and do the quick check on Magento 126.96.36.199-alpha1. There was one thing that is impossible to miss: Improved order statuses.
I remember the days when people requested that feature all over ther forum. Oh yes… what feature? Custom order statuses 🙂
So, we have it out of the box finally! Or do we? Let’s see…
Here is small example which explains how to modify order grid. Main class for order grid is “Mage_Adminhtml_Block_Sales_Order_Grid”, if you want to add some column you have to rewrite this class (block).Read more
Surprisingly one of the trickiest parts of “under the hood” Magento is how to create order programmatically. At least for me, this was/is the most complex area of Magento development. Reason why it is so difficult is that the order creation process is all but not straightforward. You cannot simply instantiate order model, set some data and call upon the save() method. If you ask me, this is how it should be done.Read more
As most of you know, there is an Order interface in Magento administration from where you can trigger order shipping. However, while developing certain module, you might wish to trigger this event from the code. I hope that this code snippet will help you in this process. In my case I have used this code to make shipment from cron after I got confirmation from fulfillment centerRead more
Maybe you want to create an invoice from some custom script or through cron script.Read more
Here is a little snippet of code that can come in handy if you are like me handling a task of programatically creating an order in Magento.Read more
Adding an Adwords tracking code to order confirmation page in Magento is relatively easy task. One that can be handled under an hour or so if you choose to implement it the proper way. Here is how.Read more
One of my previous articles was a Magento Event Hooks. This one will be a practical example on using the event hooks. Although the more proper way would be to call them Observers, bare with me. I’m use to this “hooks”.
Here’s the walk-trough on how to add a new property (attribute) to an object (Mage_Sales_Model_Order object in our case).Read more