Magento Notes — Fix for adding contact form in CMS pages
March 16th, 2009
This is a follow-up post on a fix that I had suggested about adding a contact us form through the CMS admin tool here. What I found out was that the form post back left out the action parameter…when you do a view source. So essentially the form gets filled out but doesn’t get sent to the site owner.
I found this out on my own tickon.com web site’s submit a product page. Below is the fix for this:
Go into: app/design/frontend/default/blue/template/contacts and modify the form.phtml. On (or around) line# 32, replace:
<form action=”<?php echo $this->getFormAction(); ?>” id=”contactForm” method=”post”>
with
<form action=”<?php echo Mage::getUrl(); ?>contacts/index/post/” id=”contactForm” method=”post”>
and you should be ready to go.
