Magento: Add wysiwyg editor in custom module.

Step-1 Go to following path and open Edit.php app\code\local\Namespace\Modulename\Block\Adminhtml\Modulename\Edit.php and Add this Function: Step-2 Go to following path and open Form.php app\code\local\Namespace\Modulename\Block\Adminhtml\Modulename\Edit\Tab\Form.php Find the function protected function_prepareForm() and add the following after And add this code to display wysiwyg editor: Step-3: Go to following path and open yourmodulename.xml if its Read more…

Magento: Resize Image

You can resize image with fixed height and variable width. Or, you can resize with fixed width and variable height. Following code shows how you do it in Magento. 1. Fixed width of 700px 2.Fixed height of 700px 3. The following code will resize image proportionally and not let the Read more…