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..
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..
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,..
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 manage two differents values per custom variable: HTML and PLAIN, those, are filled like the example below:
Then, you can get t..
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..
- Select from table
- Select from table (with left join)
- Insert or update duplicated
If you are working on an ubuntu linux OS, those command would be pretty useful for you:
To manipulate, and compress/uncompress fil..
The following optimization is pretty useful to re-check and fix with a web analyzer (eg https://www.gtmetrix.com/).
If you need to serv..
Those are many code snippets that could be helpful for you on shell scripts, standalone scripts, or in different situations of your market..