The Best Advices from the Best Magento Developers The Best Advices from the Best Magento Developers
Magento e-commerce web development is somewhat complex coding than other shopping cart
solutions, but highly efficient to bring desired results. The flexibility of Magento and its capacities to
deliver highly advanced e-commerce solutions attract many e-commerce developers to wet their legs in
Magento coding. Today we will look at the advices given by some seasoned and experienced developers
who had created Magento solutions with commendable success.
Due to the popularity of Magento, many Magento developers with different levels of expertise and
experiences are delivering some good stuff for the juniors as well as fresher in this field. All the Magento
developers who are writing on the web not smart or follow the best programming practices with the
best knowledge. Therefore, we should not blindly follow their instructions and don’t believe that their
advices or hints will yield guaranteed success. With this awareness, let’s start digging out some good
advices from smart and seasoned Magento developers.
Many developers tend to override core files by using app/code/local/Mage without valid reasons and
thinking of ensues. Magento is ever changing platform and constantly updating its versions in order to
meet the needs of modern businesses on ever changing flux of web. Therefore, you may have to pass
the version upgrade or other upgrades frequently. If you were changed the core files and created some
features or functionality that will go in vein as core will overwritten by new updates. Thus, each
Magento developer should have good practice to spare core source and use add-on, extensions or
plugins to infuse additional functionality.
You can bring amazing functionality in your project by creating your own classes and functions using
event-listeners, helpers or extend the core classes without overriding them. If you won’t touch the core
you will save you from lots of conflicts creating by third party add-ons. For instance if you are using
event core_block_abstract_to_html_after to insert some elements into the HTML, you don’t need to use
xml layout or override .phtml files or modifying logics of block.
The Best Advices from the Best Magento Developers Many times Magento developers think that unused or unnecessary generic blocks should be deleted to
de-clutter the code, they making a big mistake and they have to face a problem where some extensions
won’t work properly. This is due to the ability of third party extensions which are generally use generic
block to inject their own blocks there. The same mistakes we can make in the use of generic CSS classes
where we are going to creating our own and don’t use the given thousands of CSS classes during
installation. Here again third party extensions use the class names given default in Magento as well as
the templates you are going to create will use those default class names. Therefore, you need to use
them in your coding so you can do good design integration.
We most of the Magento programmers are lazy and avoid use PHPDoc in our project so we have to face
the problems at later stage when we have to revisit the code again or our colleague or other
programmers have to work with our project. If you have documented code the work will be easy for you
and others during your Magento e-commerce development.
Recommended