Skip to main content

Posts

Showing posts with the label Contact Form

Magento : Add “Subscribe to Newsletter” checkbox on Contact Form

To add "Subscribe to Newsletter" checkbox on Contact form, follow following steps:  1) Go to contacts/form.phtml file of your selected theme. 2) Place following code in the file as per your requirement :     <input type="checkbox" name="subscribe_newsletter"><?php echo          Mage::helper('contacts')->__(' Subscribe to Newsletter ') ?> 3) Now go to \app\code\local\Mage\Contacts\controllers\IndexController.php file      and put following code in postAction() function :     Note: If you are not able to find Mage/Contacts.... folder in local directory please create new one and refer to the link ( http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/how_to_create_a_local_copy_of_app_code_core_mage )  /*Start of code*/             if(isset($_POST['...