Questions tagged [contact-form]
Covers questions related to Magento Contact Form.
168 questions
2
votes
2
answers
3k
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/...
3
votes
4
answers
2k
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 form in the configuration as well as set all email addresses. I have login enabled. When I use the form it redirects ...
7
votes
2
answers
2k
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
1
answer
2k
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
/**
*
...
1
vote
1
answer
2k
views
magento 2 contact us add multiple recipients
task:
create form "contact us"
send data from the form to 2 Email addresses
I created form but magento 2 does not provide option in admin to add multiple emails separated by ,
I was looking for a ...
1
vote
3
answers
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
1
answer
54
views
Contact Form Magento2: move success message to form
How to move success (not error) message into contact form?
0
votes
1
answer
1k
views
Secondary contact form
how I can create a secondary contact form with mangento2x, I want to customize a contact form for clients feedback, I saw a lot of extensions that do what I want but they are not free, is there an ...
0
votes
1
answer
44
views
How to attach file in contact us mail
I have a contact form with a field to attach the file but I don't the way how to attach that uploaded file to the email template of contact us mail in Magento
4
votes
2
answers
4k
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="...
1
vote
1
answer
280
views
Unable To Add Contact Form To CMS Page In Magento 2?
I added below info but contact form not showing
app/design/frontend/company/name_theme/Magento_Contact/templates/form.phtml
Then, insert the contact form to the CMS page
{{block type=’core/template’ ...
4
votes
3
answers
27k
views
Magento2: 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 ...
11
votes
2
answers
4k
views
Page with contact form scrolls to bottom on load
I have a problem with my website. On loading it scrolls automatically to the bottom.
It is because there is a contact form with focus on name. How can I remove this focus?
Site
1
vote
1
answer
2k
views
Magento Contact Form: Unable to submit your request. Please, try again later
When visitors to our website try to fill in our contact form on our contact page, they are sent to /contact/index, and receive the error Unable to submit your request. Please, try again later.
At ...
0
votes
1
answer
94
views
captcha for a contact formular
I use a contactformular in my magento shop https://agoshop.at/kontakt
The problem is that I will get very day up to 4 an more dummy contact informations. I think I will need there a captcha in this ...
0
votes
1
answer
776
views
need to fetch country and state dropdown in contact form magento 2.4.3
need to fetch country and state drop down in contact form in magento 2.4.3
it showcase & fetches state for default country but could not fetch any other selected country from drop down .
code for ...
0
votes
1
answer
834
views
How to Add Country Code with Phone field on Contact Us Page Magento 2.4.0?
I want to add a country code with a phone field on the contact us page Magento 2.4.0. Can you help me there is any snippet or idea how to I'll add?
Looking forward to hearing from your side.
Kind ...
0
votes
1
answer
923
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
1
answer
166
views
"Invalid Form Key. Please refresh the page." error on Contact us page
The error "Invalid Form Key. Please refresh the page." appears when submitting the contact form.
I just don't know how to handle this. :( In my opinion, this must not even be supposed to ...
1
vote
0
answers
221
views
Magento 2 submit contact form not showing success/error messages
I'm using Magento 2.4.2 on a website with multiple stores where I have :
example.com/fr
example.com/es
example.com/us/en
...
My issue is when someone submit on the contact form, no success or error ...
0
votes
1
answer
272
views
Form 'Submit', Customer Notification (success or failed)
I created a really simple custom module with form. Everything works fine with the form. It sends the information to the provided email. However, when the customer fills in the form and clicks on "...
2
votes
2
answers
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()
...
16
votes
2
answers
24k
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
0
answers
295
views
Magento 2 Contact Form does not send email, but all transactional emails work
In Magento 2.3.5-p1 build we're having issues with the contact form sending emails.
On the client/user side, everything appears to work fine. The form submits without issue and then displays the ...
0
votes
0
answers
229
views
Getting this error in my contactformpage
Hi I am facing the following problem. Currently using Magento 2.3.3
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block', attribute 'class': [facet 'pattern'] The value '...
0
votes
1
answer
283
views
how to upload image in custom from in magento 2.4
How to upload image array in custom from in Magento 2.4
<div class="file-item-container mb-2">
<div class="row">
...
0
votes
1
answer
594
views
How can I attach files to a Contact Us form?
I am trying to create a contact us form with the following fields and file attachments on Magento 2.3.2:
<?php
// @codingStandardsIgnoreFile
?>
<?php
$themeHelper = $this->helper('...
0
votes
1
answer
42
views
404 on custom contact module
I have created a basic module that extends the contact form, the issue is that when I try to view the form I get a 404, no errors just 404.
What I want to achieve is a trade account form which looks ...
2
votes
2
answers
3k
views
Unable to send emails. Could not acquire lock for cron job: sales_send_order_invoice_emails
Unable to send any kind emails (order, invoice, tracking). I get confirmation that it was sent, but nothing received. Same with "Contact us" from frontend.
cron.log:
main.WARNING: Could not ...
0
votes
1
answer
364
views
magento 2.3.3 not sending any mail
I just installed Magento 2.3.3 in the Cpanel using Installatron. I didn't add any product. I changed the email in store->configuration->Email Options->Send Emails To.
but no email is coming ...
0
votes
1
answer
344
views
Magento 2.3.5-p2 Emails not sending
When i submit Contact Us form on frontend i get:
Unable to send mail: Unknown error
and error in exception and debug logs:
main.ERROR: DOMXPath::query(): Invalid expression in selector >> ....
0
votes
1
answer
566
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 ...
1
vote
1
answer
196
views
How to redirect (& show flash message) on CMS contact page when wrong captcha submitted
I have added a Contact form in a CMS Contact page.
added Layout Update XML section
added vendor/magento/module-contact/views/frontend/templates/contact.phtml
vendor/magento/module-contact/controller/...
1
vote
0
answers
22
views
Contact page disappear after save category
I have a online store in Magento 2.2.3 with i18n stores. In menu i create new Catalog Category with name: Contacts, Contactos and Contacts in order EN, PT and FR. I configure this category to redirect ...
1
vote
0
answers
207
views
how to save contact form in magento2 database
i am very new to magento 2 and need to save in a database the details that users enter in the magento 2 contact form
but I didn't make it, can someone help me?
0
votes
2
answers
159
views
Correct way to change core module code
I have one line of code in a core module (contact) in which I need to change.
What is the correct way to make the change to change/overwrite this file?
1
vote
2
answers
940
views
Override form.phtml to customize contact us form?
I am calling the contact form on my CMS page using this (as per this):
{{block class="Magento\Contact\Block\ContactForm"
name="contactForm" template="Magento_Contact::form.phtml"}}
I duplicated:
/...
0
votes
4
answers
3k
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?
-1
votes
3
answers
2k
views
Add Subject to the Contact form Email Template in magento 2
I have customised the Email template of Contact Us email with adding some new fields into it.
However, i want to know where is the option to add Default subject to the email. When my user submits ...
2
votes
1
answer
1k
views
How to submit contact us data to Magento 2 contact us form action using graphqL?
How to submit contact us form data to Magento default functionalities using graphQl.
I know to want to pass the form data using Mutation and doesn't have a clear idea to achieve the target.
Please ...
0
votes
2
answers
96
views
Magento 2 : How to custom contact form
I want to custom my contact form like this:
It must send data for user submitted via email
How can I do that?
Any help? Thank in advance.
0
votes
1
answer
165
views
Magento 2 Contact From Create Attachment files and attachment data not received Emails
Contact us from I have created the Attachment file upload and showing the contact us from Please Check
But In email Not received the attachment files but only received file name Please Check
And ...
1
vote
1
answer
2k
views
Magento 2.3 - Change the Contact page success message
I want to change the Success Message in the Contact Page. After someone press the submit button the Success page is like this:
How I can to change the Success Page to display a static block for ...
1
vote
0
answers
107
views
Magento 1.9 not sending contact form
My magento is not sending contact form for my e-mail, the other sales e-mails is working/sending normally, i checked the crons and system > Configuration > Store email adresses, checked Contacts too,
...
2
votes
1
answer
628
views
Magento 2: create multiple contact form with different recipients
I need to create multiple contact forms, with different recipients.
The contact forms I want to create, has to have the same fields, nothing fancy.
I just need to create different simple contact ...
1
vote
1
answer
43
views
Implementation of sending selected items along with feedback form
Tell me how to implement the functionality of such a sample. On a separate page there is a form with any fields 2 or more and a submit button. I will use this example to implement. https://magento....
6
votes
3
answers
18k
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
1
answer
2k
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 ...
1
vote
0
answers
412
views
Magento2 Captcha not displayed when contact form is added to custom block
I have enabled captcha using configuration STORES > Configuration > CUSTOMERS > Customer Configuration > Captcha
I am using one custom form which I used templates directly like below as ...
0
votes
1
answer
198
views
How to write grapgQl mutation to create and integrate the contact us page functionality in magento 2.3.2?
As same as the question, i want to create the mutation for contact us page and send the email via magento default contact us module without writing the custom email function in my resolver.
How can i ...