Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
3 answers
2k 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 \...
Mage Explorer's user avatar
1 vote
2 answers
2k 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 [email protected]. I would like to change the "send from" email address to be the ...
Mage Explorer's user avatar
1 vote
2 answers
1k 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:...
SIBHI S's user avatar
  • 2,055
0 votes
1 answer
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 ...
Robert's user avatar
  • 2,186
0 votes
0 answers
542 views

Redirect custom contract forms to the original form page

I have a custom contact-us form that is a CMS pages. After submitting the contact form I want to redirect back to the CMS page with the custom contact form. I need to edit the controller (app/code/...
JGeer's user avatar
  • 1,422