Magento
CategoryMAGENTO 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..
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..
MAGENTO 1.X – USEFUL MAGENTO CODE SNIPPETS
Those are many code snippets that could be helpful for you on shell scripts, standalone scripts, or in different situations of your market..
MAGENTO 1.X – HOW TO CREATE A STANDALONE SCRIPT
In some cases, you would need to create different kind of tasks or processes, regardless the Magento standard flow.
That is when you wi..
MAGENTO 1.X – CHANGE ORDER EMAIL TEMPLATES AND TRANSACTIONAL EMAILS
Magento provides by default a set of emails templates that you can reach and use as a transactional email on Backend > System > Transactio..
MAGENTO 1.X – HOW TO CREATE AN OBSERVER FROM SCRATCH
In some cases, you would need to add some custom functionality inside Magento flow, for those ones, Magento provide several events where y..
MAGENTO 1.X – CREATE A CUSTOM BLOCK IN MAGENTO
If you want to add your own block, you’ll need to add a Magento module, so first of all, we need to create an extension with the following..
MAKE REWRITE RULES ON .HTACCESS FILE
If you need to make a rewrite rule on your .htaccess file, for example a condition if a URL not contains an string, you will need to make ..