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/
Related
I searched the net to find a solution for this, but all I could find does not work in my case. I have a contact CMS page under https://example.com/contact-us.
The form displays fine. When I fill in data and hit the submit button, it gives me the 404 error.
I tried all possible URLs for the form URL, but none of them worked so far. This is what I am currently using:
{{block type="core/template" name="contactForm" form_action="https://example.com/index.php/contacts/index/post/" template="contacts/form.phtml"}}
Could the https be the problem? If not, what else could I try?
Thanks!
Try this one:
{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}
or
{{block type="core/template" name="contactForm" form_action="{{store direct_url='contacts'}}/index/post" template="contacts/form.phtml"}}
Please notice form_action.
I am using Magento version 1.7.0.2 and I set MAP feature in my site.
MAP feature work perfectly in category listing and product detail page but in home page its give me js error.
Reference Error: Catalog is not defined
Anybody know how can I resolve it?
ok. After some research I got the solution.
To make MAP pop-up work on the home page, add these code in local.xml of your theme:
<cms_index_index>
<update handle="MAP_popup" />
</cms_index_index>
It should be added somewhere between <layout> and </layout>.
I am gonna try my best to describe our problem. Hopefully someone way smarter than us can figure this out. One of our Joomla sites has some content that requires login, simple enough right? The normal login functionality works great. Once logged in we could see the locked down content. But lets say we have a direct link to a "locked" page, once logged in, the page redirects to the homepage (index.php).
Natively Joomla 2.5 should retain the origin link, and redirects to that link, not back to index.php. So if my link was homepage.com/k2item1, after login it should go to k2item1 not index.php. I have tried turning off all modules and plugins just in case something is overriding the native login functionality from links. I have checked the .htaccess file for redirects. I have tried both settings in SEO settings "Use URL rewriting", Yes/NO doesn't matter. I have tried renaming the override folder (html) in our template folder, so no overrides should happen. Nothing. The link still redirects back to index.php. I have even tried printing out the form/user object to see if the origin link was there, aka "return", and the link is in there, but after login, still index.php instead of the string "return". Any ideas will be greatly appreciated. Maybe there are plugins out there that would help ensure links do not redirect to home page?
Override the component: mod_k2_user/login.php and edit the hidden input name "return".
<input type="hidden" name="return" value="<?php echo base64_encode(JURI::current()) ?>" />
I am trying to add a newsletter signup form to my Magento site creativeinfusion.com.au/shop
The problem is that the email address doesn't get added to the subscribers list.
I have tried both of these below in my content block.
{{block type="core/template" template="newsletter/subscribe.phtml"}}
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
Neither one adds the subscribers email address to the CMS. I am assuming that the code above is not linking to the correct file?
This code:
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
Works great for V-1.7.x.x.
The correct line to add to the cms is the following:
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
Because newsletter/subscribe is the correct block. I added it in a clean Magento installation and it worked fine.
What is happening for you? Is the subscription form not showing at all? Is it not posting? Is it not storing the entered email adresses?
Since it works out of the box it sounds like it could be some other module or js/css that interferes with the process.
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}} <- This works for me.
I can't figure out what the real problem is..
When I click the link login in the header it takes me to the customer login page..
But on that page none of the buttons works after submitting the data..
Login button on customer login page does not work
Submit Button on create account page does not work..
Newsletter subcription button does not work...
Lad, have the same problem with newsletter.
Just installed the new version of Magento, 1.6.2.0 and didn't see the input.
Insert this:
<reference name="footer">
<block type="newsletter/subscribe" name="footer_newsletter" as="footer_newsletter" before="cms_footer_address" template="newsletter/subscribe.phtml"/>
</reference>
into /app/design/frontend/YOUR-PACKAGE/YOUR-THEME/layout/newsletter.xml into block.
Then go to /app/design/frontend/YOUR-PACKAGE/YOUR-THEME/template/page/html/footer.phtml, find there this:
<?php echo $this->getChildHtml() ?>
replace with this:
<?php echo $this->getChildHtml('footer_newsletter') ?>
It worked to me. I havent review login page, but I hope my advice with the newsletter will be useful. Good luck!