How to use the WYSIWYG editor (TinyMCE) in custom Admin Magento Module

A rich text editor(TinyMCE) is an often requirement for Admin Module as it makes the content editing work much easier. In order to enable TinyMCE editor in textarea field, You need to do the following two things: 1> Including TinyMCE in Head Add the following function in your Adminhtml Edit Class (MagePsycho_Demomodule_Block_Adminhtml_Demomodule_Edit): protected function _prepareLayout() …

Read more

Converting multi-select field to checkbox in the advanced search form of Magento

Introduction: Have you ever thought of modifying the default multi-select field to checkbox field in an advanced search of Magento? If not then here we will be discussing how to do which is damn easy and much user-friendlier. Steps: 1> Copy the following file to your working theme: app/design/frontend/[interface]/[theme]/template/catalogsearch/advanced/form.phtml 2> Open the form.phtml (from above) …

Read more

Utilizing debug_backtrace() function for Magento debugging

Introduction As promised, back with the 2nd utility function for Magento (printDebugBacktrace). This function will help you to print the backtrace. As you know that Magento has so many classes and flow/interlinking of those classes’ methods are really vague. So this function will help you to debug/trace in such cases. printDebugBacktrace function looks like: public …

Read more

Playing with Dates in Magento

Playing with Dates in Magento

Introduction Being a PHP developer, you are no way hiding from PHP’s date() function. In case of Magento, it makes use of timezone which is configured from the backend (System > Configuration > General > Locale Options > Timezone) for formatting/displaying date/time. And this makes the results obtained with the PHP’s date() function and the …

Read more

Adding new mass action to admin grid in Magento

Introduction You know Magento allows to have mass action on the selected grid listing items. The purpose of mass action is obvious that it allows having the mass/bulk operation on the selected rows at once. Some popular mass action is: Delete, Update Status, etc. This is often a requirement that you may need to add …

Read more