Some thoughts about Magento 2

During the past 5 years I have been working on eCommerce and always with Magento. Magento “1”. Magento 1 has become the natural option to recommend to anyone who wants to implement a secure, complete, extensible ecommerce site. I have learned a lot while developing on Magento, but also when discussing functional specifications with our clients, finding out what can be done and what is not a good idea to do. When it comes to Read more…

[New Relic] One of the best tools to monitor your Magento shop

At my company we’ve been using tools like Munin to monitor the server. Munin is a great tool that shows all type of graphs of what’s going on in the server: Apache processes, Varnish memory, Database performance, Server load, Disk usage, Memcache performance… and a lot more. Basically, you can configure any service you have so that Munin can generate graphs. But Munin only informs us about server stuff. It doesn’t really provide any type Read more…

[Magento] Class “Mage” not found – Possible reasons

The «Class “Mage” not found» issue has been recently a headache in most of our projects. I could say that there was a specific change eventually (either a package update, package installation, configuration change…) that make this error appear. The problem is not the error itself, the problem is that this error is not providing any type of information at all. As a consequence, it makes it very difficult to investigate what the actual issue Read more…

Magento 404 issue in some stores

We have recently had an issue with a weird 404 page in Magento. Basically, when accessing to some stores, we got a 404 page: but not the 404 page when a page doesn’t exist. It was a 404 Magento page, different than the ordinary ones. After investigating we have finally found that the problem was with the SET_ENV variable. We have set up this in the server configuration. But the code we where applying didn’t Read more…

Paypal Express + New Customer = no taxes applied and customer assigned to NOT LOGGED IN group in Magento

Recently I asked a question on Stackoverflow about a weird issue when using Paypal Express in Magento. If the customer is registered during the payment process, when the order is completed, the customer is not assigned to any group and no taxes are applied to the order. I finally found the solution myself and like to post the fix in here. It is necessary to rewrite the class app/code/core/Mage/Paypal/Model/Express/Checkout.php and modify the method _prepareNewCustomerQuote() so Read more…

Cleaning Magento Logs in Database

Magento has a very nice script on the shell directory called “log.php”. You can do many things with it, these are the 2 most interesting ones for me: Wiew the log data’s size $ php log.php status ———————————–+————+————+————+ Table Name                         | Rows       | Data Size  | Index Size | ———————————–+————+————+————+ log_customer                       | 84.83K     | 4.73Mb     | 3.69Mb     | log_visitor                        | 2.22M      | 185.83Mb   | 0 b        | log_visitor_info                   | 2.30M      | 368.44Mb   | 0 b        Read more…

Magento 1.9/1.14 come with a new default theme… finally!

Magento had been using the same theme during years. It was cool at first… but time went on, web design changes and the initially cool theme ended up being something to get rid of as soon as you installed Magento from the scratch. But this has finally changed and Magento CE 1.9 and EE 1.14 come with an updated theme, modern, nice, simple and… responsive! Isn’t this cool? You can check it lively here. I’ve Read more…

Easy management of Magento scheduled tasks: Magento Cron Scheduler

Today one of my colleagues shared a really nice extension with me: Magento Cron Scheduler. This extension lets you easily list and manage all the scheduled tasks in Magento, it also shows the the processes that will run in the following hours and the ones that were already executed. Available tasks. Shows the list of all the crons defined in Magento, showing also the periodicity and the model they call. Scheduled tasks. Show the list Read more…

Script to execute upgrade actions without flushing the cache in Magento

When having many different servers I have faced more than once issues related to module installation/upgrades. Here you have a quick script that upgrades all modules from terminal: <?php require_once "../app/Mage.php"; Mage::app(‘admin’); $begin = microtime(true); Mage::log("Upgrade Begin-".$begin); Mage_Core_Model_Resource_Setup::applyAllUpdates(); Mage_Core_Model_Resource_Setup::applyAllDataUpdates(); $end = microtime(true); Mage::log("Upgrade End-".$end); Mage::log("Duree : ".($end – $begin));