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..
INSTALL OAUTH FOR PHP 5.X
To install oauth on your system, you need to perform the following steps with your root user. Be aware that this example is for PHP 5.6, y..
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..
MAGENTO 1.X – SEND AN EMAIL WITH A PDF ATTACHED PROGRAMMATICALLY
On a Magento project, the easiest way to send an email with an attachment, is using the Zend library (provided by Magento).
- To do so,..
MAGENTO 1.X – NO PO BOX IN SHIPPING AND/OR BILLING ADDRESS
In some cases, people adds his PO Box number to the shipping or billing address. To Make a restriction on that, you need to add the follow..
MAGENTO 1.X – HOW TO CREATE AND CHANGE CUSTOM VARIABLES PROGRAMATTICALLY
Magento manage two differents values per custom variable: HTML and PLAIN, those, are filled like the example below:
Then, you can get t..
SETUP A LAMP SERVER FROM SCRATCH
Many times, you will need to setup a new work environment such as staging or live, or you may need to setup your local development environ..
MAGENTO 1.X – MAKE BASIC AND DIRECT SQL QUERIES
- Select from table
- Select from table (with left join)
- Insert
- Update
- Insert or update duplicated
field1 mus..