MAGENTO 2.X – CREATE A BACKEND ADMIN USER FROM CLI
If you need to create a new backend admin user, the following command will help you.
- Open a new terminal window, and go to your proje..
Magento 1.x – OVERRIDE MAGENTO CONTROLLER
Sometimes we may need to override a method or add functionality in a controller of Magento.
We are going to assume that you already hav..
MAGENTO 1.X – REDIRECT TO URL IN FRONTEND
Sometimes you will need to create a validation once you are entering through an url, and then redirect the user to another site/section.
MAGENTO 1.X – ASSIGN RELATED PRODUCTS PROGRAMMATICALLY
The following standalone script will help you to assign related products according to some filters.
We assumed that you know how to wor..
MAGENTO 1.X – REMOVE ITEMS FROM A COLLECTION WHEN ITERATING
Sometimes you may need to remove items from a collection (eg: products) after it was loaded, or when you are iterating it.
MAGENTO 1.X – MAGENTO FLASH MESSAGES
Some times, you will need to notice in your custom extensions (frontend or backend), any kind of succeed, or an error. To do so, let’s use..
MAGENTO 1.X – CREATE A SALES ORDER PROGRAMATICALLY
If you need to create a sales order programatically, the following code will help you:
MAGENTO 1.X – IMPORTING AND EXPORTING CSV FILES
Many times, you will need to work with external csv’s files. This simple script will help you on import and export them, and other stuff.
MAGENTO 1.X – FIX CHARSET MESSED UP CHARACTERS
This standalone script will help you to change those weird characters that would appear on descriptions if you made (for example) a databa..
MAGENTO 1.X – CREATE A CUSTOM HELPER
We are going to assume that you have a local extension working under app/code/local/Offset101/Helpertest, so, we will proceed adding our h..