Magento Tutorials

Close the store for maintenance in Magento

Close the store for maintenance in Magento




During magento upgrade or transfer the store to another hosting or any changes, it is important to close the store for maintenance in Magento. If you need to close the magento store for maintenance, you need to do following: You can modify the default maintenance message with your own message. The template file is located at : errors\default\503.phtml Enable Maintenance mode in magento : To enable the maintenance mode in …

Continue reading




Change DOB Fields to Select Boxes in Magento

Change DOB Fields to Select Boxes in Magento




If you wants to change DOB fields to select boxes in magento this tutorial will help you. By default magento has input type boxes for enter DOB on registration form. So you can change these input boxes into dropdown boxes using below code. You can copy below code and replace in app\design\frontend\base\default\template\customer\widget\dob.phtml and add some CSS based on your theme. You need to include jQuery also on this page to …

Continue reading




Change Gender DropDown to Radio Button in Magento

Change Gender DropDown to Radio Button in Magento




If you want to change gender dropdown to radio button in magento this tutorial will help you. By default magento having a gender dropdown on registration page. On registration form magento uses widgets, you can see following lines on template register.phtml. So you can found gender widget template file on template\customer\widget folder. Now to change gender dropdown to radio button replace below code into the file. Hope this tutorial will …

Continue reading




Fatal error: Call to a member function toOptionArray() on a non-object




I have installed a new module then suddenly I got a fatal error in admin like Call to a member function toOptionArray() on a non-object in app/code/core/Mage/Adminhtml/Block/System/Config/Form.php on line 46. To solve this issue go to app\code\core\Mage\Adminhtml\Block\System\Config\Form.php Now find the following on line 463 replace this with below code: Hope this tutorial will help you to solve the Fatal error: Call to a member function toOptionArray() on a non-object issue.