Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [contact-form]

Covers questions related to Magento Contact Form.

0
votes
1answer
27 views

Overriding the contact form module gets the fatal error in Magento2.2.5?

I have overriden the contact form module, after disabling the default contact form validation and apply my custom validation gets the following error: Fatal error: Uncaught TypeError: Argument 1 ...
1
vote
1answer
16 views

How to remove default contact form validation in Magento2.2.5?

I want to remove default contact form validation and add my jquery validation in contact form in Magrnto2.2.5? Any help would be appreciated.
0
votes
0answers
29 views

Stop sending contact form emails to consumer in magento2.2.5?

I want to Stop sending contact form emails to consumer in magento2.2.5? Any help would be appreciated.
0
votes
1answer
41 views

How to send welcome email when checkbox is checked in contact form in Magento2.2.5?

I want to send welcome email when a checkbox is checked in contact form in Magento2.2.5? Refer screenshot Any help would be appreciated.
1
vote
3answers
57 views

How to override default contact form Model file in Magento 2.2.5?

I want to override default contact form Model file (ie, Mail.php and mailinterface.php) in Magento 2. Struggling to override this file since the last 2days. Any help would be appreciated. /var/www/...
2
votes
1answer
37 views

How to add field value as Email subject in Magent2.2.5?

I want to add field value as email subject in Magento2.2.5(Refer screenshot) Here subject field is a select field, if I select option-1 value, The selected value should be the subject for the email ...
1
vote
2answers
51 views

Email template for contact form in magento2.2.5?

I have extended contact email form and added few fields(Refer screenshot) Under subject field there are 3 options, based on the subject selected the email should be send to multiple users. For ...
1
vote
1answer
46 views

Magento 2 show captcha at contact us form block section

I use below code to show cms block in cms page {{block class="Magento\Contact\Block\ContactForm" name="contactForm" template="Magento_Contact::form.phtml"}}
0
votes
0answers
13 views

Contact Form Drop-Down List that Changes the 'Template Subject' Only?

Is it possible to create a Drop-Down List that sends the same "Transactional Email" but with a different 'Template Subject' depending on which option value was selected? I am not concerned with ...
0
votes
1answer
14 views

Magento Getting error on contact form

I am facing this error in contact form submit after Unable to submit your request. Please, try again later if anyone know reply me
0
votes
1answer
54 views

How to add text field in contact form by admin extension in Magento 2.2.6

I need to add field in contact form using admin extension when admin add his custom field it automatically add in contact form at frontend contact-us form if anybody know the logic behind how to add ...
0
votes
1answer
63 views

Disable contact form submit onclick

I want to disable the submit button of the contact form onclick, so that the button can be only clicked once. The only problem with this, is that it does not validate the form anymore. It directly ...
0
votes
1answer
53 views

Magento contact form submit button allow click ones

Is it possible to change the behavior of the submit button on the contact form, so that it will only allow to click one time? Now when you fill in the form and click multiple times on the submit ...
0
votes
3answers
221 views

Magento 2 : Overriding Default Contact Form Controller POST.php file

I'm trying to override the contact form post controller in Magento 2.2.6, by following the answer from this thread (Override module-contact view and controller) by creating my own module. I added \...
1
vote
1answer
68 views

Magento how to change action url of contact page

I add contact form in CMS page using this code - <form class="form contact" action="<?= $block->escapeUrl($block->getFormAction()) ?>" id="contact-form" method="post" data-...
0
votes
0answers
34 views

Magento 1.9 - local.xml Template Block Not Loading when form.phtml Is Called from a CMS Page

The title is probably somewhat confusing. I'll explain as best I can. I built my own little custom CAPTCHA module for the contact us page. I modified form.phtml for my current theme and the CAPTCHA ...
0
votes
1answer
77 views

Magento 1.9 contact form validate required not working

For some reason our select dropdown is not required and does not validate the entry. It already contains the class 'required-entry' for the select. What am I missing here? <form action="<?php ...
1
vote
2answers
162 views

Magento 2.2.6 Change 'From' field of magento contact form email to the sender

Currently, when customer submit a contact form through our website, the "sent from" email address we received is our support@example.com. I would like to change the "send from" email address to be the ...
0
votes
1answer
60 views

Can't add custom script (leaflet) to Contact page

I'm trying to add a map in Contact page. In order to do that,I did the following: In file: app/design/frontend/MyCompany/MyTheme/Magento_Contact/layout/contact_index_index.xml I added: <page ...
0
votes
0answers
85 views

How to change contact page url in Magento 2

When we entering contact form in footer from any page it redirect only - /contact/index/ Any options such that we can submit form in footer any page without redirect to another page
0
votes
3answers
204 views

How to send an Email confirmation after contact us

When the client uses the contact form, how can I get a confirmation email to the user?
0
votes
1answer
273 views

Getting error of “An error occurred while processing your form. Please try again later.” after submitting a form

I am Getting error of An error occurred while processing your form. Please try again later. after submitting a form. Here is my code app/code/Smartwave/Porto/Model/Post.php <?php /** * ...
3
votes
2answers
276 views

how to store contact us form details in database programmatically magento 2?

I want to store contact us form details in database programmatically magento 2 ?
2
votes
1answer
39 views

“Contact us” form in a custom template

I have created a template in which I need to place the "contact us" form. I can currently think of two ways to do this: 1) echo $this->getLayout()->createBlock('customer/form_edit')->...
0
votes
1answer
52 views

Magento 1.9: How do I know if my form is working? Handling post information

I was looking in implement a form that collect a customers name and email information by writing the information into a CSV file. I'm completely new to Magento and got help with the following code ...
0
votes
0answers
531 views

Captcha in contact form Magento 1.9

I am trying below link to show captcha in contact form of magento 1.9, Its not loading after following this link How to implement Magento Captcha in Contact- Us form? Please anybody help out in ...
0
votes
0answers
17 views

Magento 1.9 - add dropdown and Map it with APIs ZendDesk

Does anyone know how to map a Dropdown field, inside the Contact Form, with ZenDesk API? I saw the documentation a bit but I did not find enough material.
1
vote
0answers
23 views

Send Contact Form To Different Email, Depending on Select Value?

Does anyone have any experience customizing the Magento Contact module to send the values to different emails depending on email? I'm trying to figure out how to add a select field that would ...
2
votes
2answers
1k views

How to integrate reCAPTCHA v3 in magento 1.9?

I am integrating reCAPTCHA v3 in my magento on registration page and contact form, but I am not getting any help on this as this is new version. Can some one guide me on this. I found we can create ...
0
votes
0answers
43 views

How to use more Contact Form templates?

I use this for displaying a contact form on the website: {{block class="Magento\Contact\Block\ContactForm" name="contactForm" template="Magento_Contact::form.phtml"}} But there I would like to edit ...
1
vote
1answer
140 views

Magento 2 Plugin for Contact Form Post Controller

I have added google recaptcha in my contact form. Also, I have added a contact form on CMS page. I have to validate the captcha when post contact form. I have to create a plugin for this, but not ...
2
votes
1answer
925 views

Add Captcha to magento 2 contact form on cms page

I have to add captcha on the contact form. It's working on the default contact URL but not working with the contact form on CMS page. <p>{{block class="Magento\Contact\Block\ContactForm" name="...
0
votes
1answer
156 views

Add CC or BCC to Magento Community Contact form

Referring to this thread: https://stackoverflow.com/questions/30679036/how-to-add-bcc-or-cc-in-magento/51149678?noredirect=1#comment89282991_51149678 Kindly note I test it on my Magento Comunity ...
0
votes
0answers
237 views

Contact Form Modal and Ajax Submit

I need to pop up the standard Magento 2 contact form in a modal but also submit it and show a static block without reloading the page or taking the user away from the page they are on. It's not quite ...
1
vote
1answer
402 views

Add new custom field in magento 2 contact form

Could you please help to add a new custom field in Magento 2 contact form.
3
votes
2answers
691 views

How to add file upload option to Magento2 contact form?

I want to give users option to upload a file in magento2 contact form and recieve it in the email as attachment. How to do that? Please guide.
0
votes
1answer
23 views

Separate mail for customer and store(owner of store) for enquiry form

I have a new form named Service Request. When user submit a request I need to get separate mail for both user and store. The user content should be like : Thanks You for contacting, Our team will ...
0
votes
0answers
37 views

Magento 2.2 Copy contact form template and create another version

I want to create another communication form that works exactly like contact form: User writes information in a form Presses submit I receive an email with users information So, I thought ...
0
votes
1answer
539 views

Magento 2 - Custom contact form not showing up

How would I create a secondary contact form in Magento 2.2? I'd like it to have the following fields: Name Phone Email Checkbox 1 Checkbox 2 Submit button I have tried following this thread which ...
0
votes
2answers
38 views

How Can I Check If Mail id Available in DB or not?

I am getting so many spam from inquiry submission, My contact form : <?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that ...
0
votes
1answer
262 views

Magento2.2 Custom form not sending data via email

I have followed this post about creating a form that sends data to a specific email. The module works, but the form isn't sending data to the given email. For simplicity I am going to paste the code ...
1
vote
0answers
52 views

Magento 2.2. with Varnish, Contact form not working

I am trying to test the contact form, but varnish is giving me 503 errors every time I am trying to submit the form. However, I don't think varnish is the issue here. I am calling the form using the ...
0
votes
1answer
35 views

How to add a Contact Form to sent to email address

How to add a contact form to our contact page but finding it difficult to do so. I can add the form via html and styling etc but getting it to send to an email address is where I'm having problems.
2
votes
2answers
68 views

How to give condition for Contact Form Only For Registered Customer?

Below is my Contact Form Email id Box : <div class="field"> <label for="email" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('...
1
vote
0answers
87 views

stream_socket_enable_crypt error when trying to send emails in Magento2

I am getting the following error on the frontend of my Magento 2 (v 2.2.3) website when trying to share Wishlists or send a Contact Form. This hasn't always been the case just since I switched from ...
1
vote
1answer
403 views

Add custom Select to contact form Magento 2 - Theme Luma

following other guides, I added in the page form to /httpdocs/vendor/magento/module-contact/view/frontend/templates/form.phtml and I added the code <div class="field selezione required"> ...
0
votes
2answers
395 views

Magento2 : How to override contacts form.phtml in child theme

I want to change page title in child theme for contact-us page. But when I'm trying to override file Magento_Contact/templates/form.phtml in my child theme from parent theme then on frontend the page ...
0
votes
0answers
333 views

Magento2 Contact Form Emails Not Received

We're experiencing an issue with one of our Magento 2 sites where the contact form emails are not being received. Order emails are being received - it's only the contact form that is failing. There ...
0
votes
2answers
453 views

How can i programatically send contact us mail in magento 2?

i have tried using the below code but didn't get the solution. public function contactUs() { //$params = $this->getRequest()->getParams(); //$mail = new Zend_Mail(); $this->...
0
votes
2answers
82 views

How can I use different emails on contact us page?

We have a contact us page, and we have the fields: Name, Email, Telephone, Reason, and Message. We have different people who deal with different things, so we were thinking the reason could be the ...