Development

Recently I had to do something I thought it was simple to do: add the category images to the navigation menu. However, Magento doesn’t use a template to draw the whole menu but a function that will retrieve all categories and generate the ul/li tree. In Magento 2.1.X you can do this rewriting the _getHtml() […]

Read More

Getting the “current product” in Magento 2 is trickier than it was in Magento 1. However, it is like that for a reason: Mage:: is a thing from the past, no more accessing to everything from everywhere (someone I know would say: “this is not logic at all”). That’s the reason why, in order to […]

Read More

Recently I wanted to remove a field from a form object. It was easy, we need to know 2 things: Fieldset name (‘main’ by default) Field name With this information we can just update the form object with:     <?php $this->getForm()->removeField(‘password_fieldset’); ?>

Read More

I have recently run into this Magento script who lists all the cronjobs on the site (coming from core, community or local). Easy to use and with a good result view!

Read More

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 […]

Read More

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 […]

Read More

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 […]

Read More

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 […]

Read More

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:

Read More

Recently I had to use ssh2 through php in order to send files from one server to another. I don’t know why, I was getting a error that was not actually very common on the Internet. My code was: The connection was correctly placed, but when trying to copy the file, I got: Warning: ssh2_scp_send(): […]

Read More