How to add custom "table-like" configuration field in Magento admin In this post I’ll show you an example of adding custom “table-like” system configuration field in Magento admin. And by “table-like” I mean something like this: If … #magento
Changing the trigger DEFINER in Magento database dump If you’re about to work with Magento EE 1.13+ & have the database dump on your hands, you might want to check & change the trigger DEFINER statements of it. It will save you from … #magento
Returning JSON response from Magento controller action Here’s quick example of how to return JSON response from Magento controller action. Assuming you have already created appropriate XML configuration and controller class/file, just add the … #magento #snippet
Add custom product, category and CMS page tabs in Magento admin Adding custom product, category or CMS page tabs in Magento admin can be challenging task if you haven’t done it before and do not know where to start. Here’s an example of how it … #magento
Programmatically change store config to avoid rewrites in Magento Here’s a nice strategy to achieve a desired functionality in Magento while completely avoiding class rewrites - programmatically changing the store configuration via observers prior to core … #magento
Load customer by custom attribute in Magento Here is an example of slightly more advanced approach of how to load customer in Magento - load customer by attribute value - be it some default attribute or a custom one. Generally the approach … #magento #snippet
Load customer by email in Magento Another example of how to load customer in Magento - this time - by customer email. Previously we looked at how to load customer by ID in Magento, now we will do the same, but using the customer … #magento #snippet
Load customer by ID in Magento Here is a quick example of how to load customer by its ID in Magento. It is a standard load method that is used across all Magento models. Be sure - you will see this very often! Get customer by … #magento #snippet
Get current store ID in Magento This here is a really short example of how to retrieve current store ID in Magento. Additionally to that, an example of getting current store object and some of its data. Let’s roll! Get … #magento #snippet