Questions tagged [contact-form]

Covers questions related to Magento Contact Form.

Filter by
Sorted by
Tagged with
2
votes
2answers
1k views

Magento 1.9 Custom Module Form $mail = new Zend_Mail(); include more $params

I created a simple custom module and have a problem with $parmas which I can't figure out for hours now. Here is the IndexController.php responsible for it: public function sendemailAction() ...
0
votes
1answer
537 views

2 contact us forms with different email configuration

I want to copy magento "contact us" form, however, set a different configuration to it. Now, "contact us" form sends information to support@company.com. I want "contact us 2" to be exactly the same ...
2
votes
2answers
2k views

Magento 1.9 Contact form

I want to create a contact form where customers can contact me on different email to the one specified in the Magento back-end configuration. I have a form.phtml file in /http/app/design/frontend/...
0
votes
1answer
494 views

Get firstname and lastname contact page Magento 1.9

I want to get the first and last name in a custom contact form in Magento 1.9.x in my custom_contact.phtml file I have this: <?php if (Mage::getSingleton('customer/session')->isLoggedIn()) { ...
0
votes
1answer
805 views

Captcha won't show up when load contact form by Static Block

I am getting captcha at contact us page. But when same file is called in static block, contact us form works fine but captcha does not occur. Kindly suggest any solution.
0
votes
1answer
240 views

Magento2 contact form in footer redirects to different page after submitting the form

Could anyone help? i want to use contact form in footer without redirects to different page after submitting the form. Everything working fine but form redirects to different page after submitting ...
1
vote
2answers
996 views

Magento 2 : Overriding Default Contact Controller POST Action

I'm trying to rewrite default post action of contact controller in my custom module. di.xml is <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
2
votes
1answer
680 views

Magento contact form encodes html entities

In Magento 2.1.1 the contact form seems to encode the html entities and special characters into entities and therefor corrupts the contact form contents. I noticed that the Transport action sends the ...
0
votes
1answer
84 views

Does Magento store copies of the Email messages sent through the CONTACT US page? Is it possible to retrieve them?

I made a big mistake by not changing the "Send Emails To" Email address in: SYSTEM - CONFIGURATION - GENERAL - CONTACTS - Email Options The Email address in there was "hello@example.com" this ...
0
votes
2answers
1k views

Contact us email not sending

I am working in localhost with Magento 1.7. When I fill the form under the contact us page (myurl/contacts/), I don't receive any email at all. I have checked Admin -> System -> Genera -> ...
0
votes
1answer
385 views

Add a “Contact us” form on each product

I would like to add a "Contact us" form on each product; I've copied the contact form and added to the cms static block: {{block type="core/template" form_action="/contacts/index/post/" template="...
0
votes
1answer
387 views

Warning in production mode stops execution

I'm facing a weird issue. I had to override the Magento_contact Post Controller. Just adding a field on the contact form and the redirect after form is submitted, something easy, and all goes okay on ...
0
votes
1answer
1k views

Redirect contact page to the same page and add message too

I use magento 1.9.x version, I add a new contact form in product view page, but after I press Submit button the magento is redirect me to the Contact page how I can stop this redirect and remain in ...
1
vote
1answer
312 views

I want to make multiple contact forms which could be received to other email address

I have a Magento website for sorts of people use. So i want to make multiple Magento contact forms depending on the users type. I make the contact forms that emails have received to general email i'...
4
votes
2answers
16k views

Magento2 contact form in CMS page

in magento 1.x for add contact form in CMS page i use next code {{block type="core/template" name="contactForm" form_action="{{store direct_url='contacts'}}/index/post" template="contacts/form.phtml"}...
1
vote
1answer
2k views

Contact Us form not working

I am using Magento 1.9. I had configure the mail setting and my newsletter mail also working properly. But when I tried "About Us" it show me the below error message Unable to submit your request. ...
1
vote
0answers
73 views

Contact form not work in server

I have problem in send mail from contact form. In my localhost all good working but in server I have error Failed to submit queries. Please try again later. I checked all solutions http://inchoo.net/...
0
votes
1answer
4k views

Submit a form in Magento 2 custom module?

I created a custom module. There is a form which user submit. I want to capture the post data. So how to create a post route ? This is my routes.xml <config xmlns:xsi="http://www.w3.org/2001/...
5
votes
3answers
5k views

Contact form after submission not redirecting to cms page Magento 2

I have created contact us page and called contact form block in content.When user submit for it redirect to contact/index instead of redirecting to current cms page that is contact-us. I searched on ...
1
vote
0answers
449 views

How to stop Magento 2 Escaping HTML in Contact form

I'm hoping someone can help me figure out how to prevent Magento 2 from escaping special chars in the contact form! At the moment, when a message is sent via the standard contact form in Magento 2, ...
1
vote
1answer
420 views

How to avoid HTML characters in contact form?

The problem is when user submit the form with special characters in the contact form (description field), in the mail it converts to HTML characters. After lot of debugging I nailed down the following ...
0
votes
2answers
168 views

Adding new model to Contacts module breaks contacts configuration

Recently I tried to extend the contact form on our website. I wanted to add a drop-down with some possible subjects the user could select. To do this I created a new module MyCompany/Contacts in the ...
0
votes
1answer
232 views

Can't add Layout Update to CMS page

I have a CMS page with a URL key of "contact" (without the last 's'), I would like to add a block within it. The content of the CMS page is simply: {{block type="core/template" name="contactForm" ...
1
vote
0answers
345 views

Contact Form not submitting

I've got this block of code in my CMS that renders my contact form. However, It does not submit the form. Upon submit it routes to a 404. {{block class="Magento\Contact\Block\ContactForm" name="...
1
vote
1answer
2k views

Custom Contact Form using Custom Template (Works .. Kind of)

After a bunch of head scratching, I have finally gotten a custom contact form with additional information on a seperate cms block from the contact form to take the information and send it off, using a ...
3
votes
1answer
1k views

add a select dropdown on Contact Page

I'm looking for a way to be able to add a Dropdown (select) to the Contact Page and use it as a Subject later on in the email. I've tried simply adding a dropdown but it doesn't seem to be working: ...
0
votes
1answer
269 views

Displaying contact form under categories

I am not much familiar with many feature of magento but I know that to display form, we can use the following in pages. {{block type="core/template" name="contactForm" form_action="/contacts/index/...
0
votes
3answers
1k views

Contact Form Does not send email - no errors or logs

am attempting to use the built-in Magento contact form. I have enabled the contact forum in the configuration as well as set all email addresses. I have login enabled. When I use the form it redirects ...
0
votes
1answer
434 views

Customized contact us page for logged in user

I wish to add a contact us page customized for the logged in user in magento2 website. It should be like it's activated when a person is logged in and it should not ask for name or email , it should ...
1
vote
3answers
7k views

Input value must contain number higher than 5

In my contactform I want to display a inputfield, that may only contain a number, higher than 5. How can I achieve that? My current code is: <li> <div class="field"> ...
0
votes
0answers
538 views

How to save Contact Us form data in to existing Customer table of magento database?

I want to save contact us form data in to existing customer table and this means that data are save in those table where after creation of customer account data are saved. And after saving data in ...
4
votes
3answers
12k views

Magento 2 - State/Province dropdown and Country Dropdown in Contact form

I need to add these 2 dropdowns to the contact form. How would I pull in those values for each dropdown?
0
votes
1answer
441 views

Magento 1.9 Custom Feedback form

I was added feedback form code in manual every layout (1column.phtml, 2col-left.phtml and etc). Now Feedback form will be showing on every page of my site. I need to configure email sent options. I ...
0
votes
1answer
76 views

Delete Phone Number validation, Error in Forms

I want to remove phone validation from this form below, it's not accepting any phone number, the file is smiple_contact.phtml but I am not sure what code to delete. Thanks. http://www.b2zee.com/b2c/...
4
votes
3answers
20k views

Magento 2 how to validate form and display error message below input field

In magento 1.x we use the following code to validate Magento forms: <script type="text/javascript"> var myForm= new VarienForm('contactstore', true); </script> I am using this code ...
2
votes
2answers
940 views

How to add contact form on category page?

I have to add custom contact form on product listing page.For this i am adding in local.xml file. <catalog_category_default translate="label"> <reference name="root"> <...
15
votes
1answer
17k views

Add custom field to contact form Magento 2?

I'm using magento 2 and I would like to add a custom field to the contact form , how I would be able to do that ?
0
votes
1answer
40 views

Magento Add Two actions to my form

I have a form and on submit of that form one email is going on one ajax action. After the email has been done i want it to redirect to checkout page with one simple product of $100. Please help on ...
0
votes
2answers
677 views

Contact Us page has disappeared Magento 1.9.0.1

We used the default contact form and now the page has reverted to the "404 error page" I've tried to find the CMS page to edit this if it had become disabled, but it seems like it's not even listed ...
0
votes
1answer
398 views

Add content to second column on “Contact Us” page

I've been editing the standard magento contact us page. Mine is using the 2-column-left.phtml template being called through the contacts.xml. On my contact page the standard form is being populated ...
5
votes
1answer
688 views

Magento Contact Form: What is the 'hideit' input for?

Looking at the Magento Contact Module (be it magento1 or magento2) there is a hidden field name="hideit". <input type="hidden" name="hideit" id="hideit" value="" /> Here the full snippet from ...
0
votes
1answer
236 views

Editing contact form's required field does not work

My client wants to have the comment in conatct form as optional. I changed the below code but then form does not work any more "Unable to submit your request. Please, try again later"! <li class="...
0
votes
1answer
199 views

Magento 2 get contact form

In Magento 1. I have the following code: $form = $this->getLayout()->createBlock("core/template")->setTemplate("contacts/form.phtml")->toHtml(); Need Help something similar for Magento ...
0
votes
3answers
3k views

Magento contact form unable to submit your request error

Magento 1.9.2.3 contact form issue, its the default contact form in magento. I get error Unable to submit your request, please try again later, even all fields are filled, however this form is ...
0
votes
1answer
160 views

Contact form email template - Array

If I have a checkbox on the contact form how do I pull these values into the email template. My form looks like <li> <label for="telephone">Contact Method</label> <...
1
vote
2answers
247 views

Send visitor to a CMS page after the Contact Form

In Magento 1.9, after a visitor submits the contact form they get sent back to the contact form page. How can I send them to a CMS page instead? (I did try googling this, but the only results I got ...
0
votes
1answer
301 views

Custom Contact Form on Selected Product Pages

I need to hide the prices on selected products and on those selected product pages have a button to request a quote which opens a contact form. Upon filling the form the script will send them an email ...
10
votes
2answers
16k views

Magento 2 : Show captcha at contact us form

I use the below code in a CMS block to show the default magento contact us form. <p>{{block class="Magento\Contact\Block\ContactForm" name="contactForm" template="Magento_Contact::...
3
votes
1answer
175 views

How can I send email based on selection - Magento contact

I want to make a functionality that based on what I select in contact form (I've add a select box in the contact form). For example if I select a department from the select box I want that the email ...
1
vote
3answers
755 views

Send to an extra bcc email on contact form

I just modified a time before my IndexController.php just to be able to send emails to multiple recipients and it was working fine. I took it from magento.stackexchange. This is what I have now: $...