Magento – use Redis as cache backend

We will configure Magento to use Redis as main cache backend. 1. Install Redis. (2.4 is required because it supports operating on multiple keys for many operations) 2. Install phpredis. For 2.4 support you must use the “variadic” branch: git checkout -t -b variadic origin/variadic, phpredis is optional, but it is much faster than Redisent. […]

Magento – Add autocomplete plugin to TinyMCE editor

HTML editor in Magento back office is sometimes not enough. There is plugin that makes editing more user friendly. The code will be coloured, and the editor will optionally help you with indentation. We will start with creating new module called Flexishore_Codemirror: <?xml version="1.0"?> <config> <modules> <Flexishore_Codemirror> <active>true</active> <codePool>local</codePool> </Flexishore_Codemirror> </modules> </config> To add new […]

Add custom field to CMS page

UPDATE #1 : module should work now fine for Magento 1.7 To add a custom field to CMS page we will use Magento event mechanism. You can see all events here. We need to make a module to extend the functionality of CMS page model. We will name it Flexishore_Cms. Add file named Flexishore_Cms.xml to […]