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 moreMagento 1
Layout of your custom controller in Magento?
When you work with custom (your own) controllers in Magento,
either frontend or backend, you will probably also use existing blocks and models or if needed write your own classes.
But what happens if you want to or have exigency to move/remove common blocks?
Can you really “design” your own page view without touching Cascading Style Sheets?
How to extend Magento Order Grid?
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 moreProgrammatically change Magento’s core config data
Every Magento installation has certain core configuration data already set. When you update those values from the administration interfaces, changes are saved mainly to core_config_data database table. It seems important and something that you shouldn’t touch, right? As always, there are times you will wish to get your hands on it. In some cases you will wish to chance settings directly from the code. This article demonstrates the proper way.
Read moreSetting up Magento on Git repository
Hello everyone! Recently I wrote a short article Git vs SVN A.K.A. Everyone likes control. Now, I wanted to give you an “real life” example of putting Magento project into Git repository.
Read moreSetting up Magento debug enviroment using xdebug and Aptana Studio
I’m using Aptana studio for few months already.
It is Eclipse/PDT based so I’m sure all this can be achieved in any Eclipse based platform.
Magento LightSpeed Extension – Review
In the last 7 years of my involvement with web development I have had an opportunity to open a great number of different “boxes“ when looking for web site improvement. After opening these “boxes” things often didn’t seem as it was specified – luckily this is not a case with Magento Lightspeed extension : )
Read moreDispatching before and after events to Magento core actions
As we all probably know, there are some events in Magento that are dispatched by default.
We can easily hook on those events, but this is not a subject of this article.
What we are going to try now is to add custom event before and after some action in some of Magento’s controllers.
Read moreHow to extend Magento core controller?
Hi, today I’ll show you how to edit Magento’s core module without messing with core files themselves, or “the right way of doing things”. 😀
Read moreHow to set multiple stores/websites with one magento installation on different domains
This article will describe quickest way how to use and configure one Magento installation on different domains.
Point here is what do you want to have on that different domains, for example you want to have chosen categories/products on one domain and the other one will be on different language.
First you figure that and then go to configuration.
Load XLS files into Magento modules using PHP-ExcelReader class
Recently I had a small problem and it turned out that it wasn’t small as a initially thought. I had to read XLS (Microsoft Excel document) into PHP. After I spent almost 2 hours browsing through internet, I found myself most satisfied with open source project “PHP-ExcelReader class“. It has everything I needed (multiple sheets support and it could read data from both Excel 2000 and 2007). On the other hand, Magento doesn’t support XLS, and I decided to write a small method that you can implement in any Magento class.
Read moreMagento and Google Services Integration – All-In-One Guide
There are tutorials all around the web as well as at the Inchoo website that guide you through various Google services integration with Magento eCommerce platform. I wanted to unite all of these resources on one place and also bring something new to the table.
Read moreProgrammatically create order in Magento
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 moreTaming magento errors display
Murphy says: “Anything that can go wrong, will go wrong”. When it happens to your store it’s best to get the information about it ASAP and present the error in the most humane possible way. Let’s do it!
Read moreUsing local.xml for overriding or updating xml structure
Over the past 3 years working with Magento and complying with the “Magento way” of managing code, usage of the “local.xml” file presented itself as one of the best ways to update xml layout.
Read moreMagento and Google Adwords conversion tracking
If you use Google Adwords advertising for your Magento web store, you will probably need this module. This module will be very useful, because Magento doesn’t have functionality for tracking Adowrds conversion. Feel free to download module and use it on personal responsibility. I’m using this module on web store without any problems.
Read moreHow to make order shipment from code
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 center
Read moreHow to create Magento invoice from order
Maybe you want to create an invoice from some custom script or through cron script.
Read moreMagento Enterprise 1.9.0.0 redirects to home page instead of 404 error page
If you have installed and working on latest Magento’s Enterprise Edition 1.9.0.0, you could find some strange behavior with 404 error page and landing page. People say there is a patch for this, but I would like to present a quick fix for those of you who need an urgent solution. Issue is that you’ll get status 200 OK for each non-existing CMS page or controller and you will be redirected to home page.
Read moreHow to add “View All” button in Magento’s pagination
Hi, I had a bit of unusual request from a client and I had to create “View All” button and put it into Magento’s pagination on category listings, so I decided to share the trick. 😉
Read moreWorking with multiple PHP frameworks – The best practice
Hi, first of all, I’d like to explain the title of this post. I won’t go into depths of complicated examples, but rather explain the logic of it.
Read moreHow to make configurable options autoselected on Product view page
If you ever tried to do anything with Magento configurable products view page, most likely you needed changes in /js/varien/product.js in case you wanted to manipulate dropdowns.
This will be one of the ways to do it.
Read moreHow to add massactions to Magento’s grid
This article describes how does Magento’s mass actions work and how to add them in your existing grids.
You need to do 2 things:
– extend the block (grid) class with “protected function _prepareMassaction()”
– add an action into your controller, which will handle your desired logic.
Contact Form in Magento
As you know, Magento has a built-in contact form that can be used for general contacts. That form isn’t part of any CMS page, you cannot edit some introduction text, you cannot add phone numbers administration, and you cannot see the breadcrumbs. If you wish to edit text in that default contact form, you will need to update front-end files. Luckily, there is an alternative.
Read moreAdd custom renderer for a custom column in Magento grid
Every now or then we need new column on some grid listing in Magento. It is quite simple task, but you will probably want to format values way you want or whatever.
This is where writing your own renderer would be usefull and simple.
How to disable email sending when programatically creating an order in Magento
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 moreInchoo becomes Magento Professional Partner
Inchoo has officially become a Magento Professional Partner. With this step, Inchoo joins an international roster of Magento Solution Partners as the first partner in Southeastern Europe.
Read moreHow to create Magento payment module
Here is small example which will explain how to create a simple Magento payment module.
Read moreMysteries of Magento Encryption Key
If you ever went through Magento installation process, you know that at some point you are asked for Magento Encryption key. Magento will automatically generate one for you if you do not enter anything in this field. For first installation, this is just fine. You will see a note that Magento uses this key to encrypt passwords, credit cards and more. Is this really the case?
Read moreProgramatically create attribute in Magento, useful for the “on the fly” import system
Sometimes when doing an import in Magento from old shop system you are faced with lot of issues related to attributes. For instance your old shop system might have several product attributes that simply do not fit into the default Magento attributes. In such cases you need to create these attributes manually in the Magento admin, assign them to the appropriate attribute set and then construct a valid CSV file with valid column names for these new attributes.
Read more