I’m new I magento and it is giving me a lot of headaches. I can’t get the contact form to work, this is the URL
http://blokeundees.com.au/index.php/contact
My code on the contact us block is
{{block type="core/template" name="contactForm" form_action="http://blokeundees.com.au/index.php/contacts/index/post/" template="contacts/form.phtml"}}
also tried
{{block type="core/template" name="contactForm" form_action="/contacts/index/post/" template="contacts/form.phtml"}}
But with this one is sending to a The requested URL /contacts/index/post/
was not found on this server page
My configuration is:
Enable Contact Us -> Yes
I don’t know what to do and can’t find a solution
Hope somebody can help me
Thanks
Make sure the contact form is enabled in the backend:
System -> Configuration -> General -> Contacts -> Contact Us -> Enable
Dude, I just clicked on the above link and filled the contact form and submitted a comment also. But you are saying it gives 404 error. Can you please clear your browser cache(by ctrl+F5) and reload the page once again??
I have the same problem. My solution is as follows:
My domain root URL: www.example.com/online/
The page URL with the contact form: www.example.com/online/contact-us
If you want the post action working, you have to make sure the path for contacts/index/post
is under your domain root path. In my case, I use this one
{{block type="core/template" name="contactForm" form_action="../contacts/index/post/" template="contacts/form.phtml"}}
Once I click the sumbit button, the url goes to www.example.com/online/contacts/index/post/
and the page shows that "Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us."
In your template
/template/contacts/form.phtml
change form action from contacts/index/post/ to contacts/index/save/