0

visit this link,

http://hotwheelstoys.in/one/em0113-full-package/index.php/contacts/index/

if you click on " submit" button , it will give you a message in the contact us page only.

we are using this code in :http://pastebin.com/U86VDhd3

i want to to display this message in the other page....

means if we click on "submit" button, it should redirect to another cms page.....

  • 1
    check this stackoverflow.com/questions/3314872/… – Manashvi Birla Sep 10 '15 at 4:43
  • can you please inform what code changes i have to do to work for my code – Baby in Magento Sep 10 '15 at 4:49
  • 1
    Go to make sure u copy to local folder should not edit core file app\code\core\Mage\Contacts\controllers\IndexController.php Mage::getSingleton('customer/session')->addSuccess(Mage::helper('contacts')->__('Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us.')); $this->_redirect('*/*/');---> here add ur page url – Magento 2 Sep 10 '15 at 5:44
  • @Manojkothari post your comment as answer...... – Baby in Magento Sep 10 '15 at 5:50
2

make sure u copy to local folder should not edit core file

Go to--> app\code\core\Mage\Contacts\controllers\IndexController.php

Mage::getSingleton('customer/session')->addSuccess(Mage::helper('contacts')->__('‌​Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us.')); $this->_redirect('*/*/');---> here add ur page url 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.