Latest Articles

Clean way of deleting orders in Magento

If you prefer to use an extension to add a «Delete» option on the orders list, see the Seamless Delete Order extension. But if you want to do it by your own using the Magento functions, it’s quite easy. Just use something like this (this function would delete all orders, so don’t apply it directly!):

Functions in Blocks and in Helpers: what’s the difference?

For me, it’s pretty clear when the difference between a Block and a Model. Basically, the Model defines and implements our «object» in the Magento system, so we can call it whenever we need it. Blocks let us run specific functions from a concrete part of the website (defined in the layout) and call them […]

How to get and show customer reward points in Magento Enterprise

One of the cool features in Magento Enterprise Edition is the reward points system. It’s very simple to configure and a really good way to make the customer feel «rewarded» for each action that he/she performs on the web. The reward points are shown by default in «My account» area and also in the checkout […]

The easiest way to use jQuery in Magento

There are many different ways to use jQuery in Magento. The point on this is that given that Magento uses Prototype as default javascript framework (arghhh!), if we try to use jQuery libraries directly, there is going to be a «conflict». We can solve this activating the jQuery «no conflicts mode», but there are easier […]

Get and show the collection SQL query on Magento

I’ve been “suffering” out of memory problems on one of our clients magento installations. The version is the 1.4.0.1, and it seems that the queries are not as efficient as they are on Magento 1.5 and above. So I needed to find out what were exactly the SQL queries that produced that out of memory […]

Get the current user/client/customer in Magento

That’s easy: Take a look at this stackoverflow question.

How to override a Magento core controller

If you want to override a core controller on Magento in order to add other customActions, it is really quick and easy to do so. You only need to create a few files…

Solving the 404 error on the System » Configuration custom extension menu

When we install for the first time an extension that adds a menu on the System » Configuration panel, it is possible that we receive a 404 error when trying to configure it. This has happened to me on the Simple Configurable Products extension and the AheadWorks Blog extension. Solving this is really easy: 1. […]

Solving the “Customer Login” title in all pages in Magento

I’m one of those that wanted to add a login form on the sidebar of my Magento. This was really easy, I just add the following line to But after that, every page on my magento store showed the title page as “Customer Login”. This happened to me in Magento EE 1.10 and Magento CE […]

Remove the from_store link when changing store views/languages in Magento

By default, on the store views list (usually for languages), Magento creates links to the different views but it also adds the “from_store” parameter. It seems that SEO guys don’t like this too much. If you need to remove it, search on your theme templates for the “select_language” string. Usually, this is on the header.phtml, […]