I have a custom contact-us form that is a CMS pages.
After submitting the contact form I want to redirect back to the CMS page with the custom contact form.
I need to edit the controller (
app/code/core/Mage/Contacts/controllers/IndexController.php) and change the
And I also found out that I need to edit the contact form .phtml file (
<div id="messages_product_view"> <?php echo $this->getMessagesBlock()->getGroupedHtml() ?> </div>
<?php Mage::app()->getLayout()->getMessagesBlock()->setMessages(Mage::getSingleton('customer/session')->getMessages(true)); ?>
But I do not want to edit the core file. So I want to override the default contact controller.
Therefore I found this URL.
But I do not know where I need to create the
config.xml and what code I what code I need inside my custom
IndexController.php file to achieve what I want.
What do I exactly need to do, to achieve this?