Advanced Contact Form for Magento 2
Replaces the Magento 2 contact page at /contact with an AJAX form that saves every message to an admin grid. Add custom fields and screen spam with a honeypot, a content check, a fill-time check and an hourly limit per IP.
- Free
- Themes listed: Luma
composer require mage2kishan/module-advanced-contact-us
- Package requirementsRead the source documentation
- Developer profileView Upwork profile
- Themes listedLuma
- PHP versions listed8.1, 8.2, 8.3, 8.4
- Installation questionsDiscuss your store setup
What it does for your store
The main features, as listed in the module documentation.
-
AJAX contact form
Plain JavaScript submission with a normal form post fallback when JavaScript is off.
-
Custom fields
Add text, textarea, select, radio, checkbox, email and tel fields from the admin configuration.
-
Spam screening
Honeypot, content check, minimum fill time and an hourly limit per IP, each one optional.
-
Submissions grid
Search, filter and mark messages New, Read or Replied, or delete them in bulk.
-
Notification emails
Sends a notice to the recipient you configure and an optional short acknowledgement to the sender.
Installation
Example commands from the Magento root. Follow the package instructions and your staging and deployment process.
- 1Check the releaseMatch Magento, PHP, theme and dependency requirements.
- 2Install on stagingReview Composer changes and follow the package instructions.
- 3Configure and verifyUse the documented settings and test the affected features.
$ composer require mage2kishan/module-advanced-contact-us $ bin/magento setup:upgrade $ bin/magento setup:di:compile $ bin/magento setup:static-content:deploy -f $ bin/magento cache:clean
Listed requirements
These are the details supplied in this listing. Confirm the selected release supports your Magento edition, PHP and storefront.
| Magento versions listed | 2.4.6, 2.4.7, 2.4.8 |
|---|---|
| PHP versions listed | 8.1, 8.2, 8.3, 8.4 |
| Themes listed | Luma |
| Composer package | mage2kishan/module-advanced-contact-us |
Documentation
Product details and setup guidance. Check the package repository for release-specific instructions.
A contact page that stores every message
Advanced Contact Us replaces the stock Magento 2 contact page at /contact with its own form, controller and layout. Each accepted message is saved to a database table and listed in an admin grid, so a message is not lost if an email goes astray. The form posts with plain JavaScript over AJAX and falls back to a normal form post when JavaScript is off.
Name, email and message are always on the form. Phone and subject can be shown or hidden and made required on their own. Logged-in customers see their name and email filled in.
Add your own fields
Extra fields are set up in the admin configuration as rows with a label, a type, a required flag, a placeholder and, for select and radio fields, a comma-separated list of options. The types are text, textarea, select, radio, checkbox, email and tel. Required fields and option lists are checked in the browser and again on the server, and the values are stored as JSON with the submission. There is no file upload field.
Spam screening without a CAPTCHA
Four checks run in this order, and each can be turned off in the admin:
- A hidden honeypot field that people do not see and many bots fill in.
- A content check for link-shortener domains, your own blocked terms, three or more links, and a URL in a short name or subject.
- A minimum fill time, 2 seconds by default.
- A limit on stored submissions per client IP address per hour, 5 by default.
The first three discard the message quietly and show the normal success message. The rate limit shows an error. These checks reduce spam; they do not stop every bot.
Where a submission goes
Every accepted submission is written to the panth_contact_submission table with the IP address, user agent and store ID. The module then sends a notification email to the recipient address you set in the module configuration, with Reply-To set to the sender. It can also send the sender a short fixed acknowledgement that does not repeat what they wrote, limited per address and per IP each hour. Both emails use your store's own mail setup and templates you can edit under Marketing, Email Templates. If sending fails, the error is logged and the submission is still saved.
Set the recipient and the sidebar contact details before going live. Until you change them, the module uses placeholder values from its default configuration.
Managing submissions in the admin
The Submissions grid under the Panth Extensions menu has keyword search, filters, sorting and mass actions to delete or mark messages New, Read or Replied. Opening a new submission marks it Read. The detail page shows the message, custom fields, IP address, store and date, with a Reply via Email button that opens your mail program.
Themes
The template is written for Luma and Luma-based themes and uses inline CSS and plain JavaScript, with no jQuery, Alpine.js or Tailwind. It removes the stock contact form blocks, so on a Hyvä storefront it renders as a self-styled page rather than a native Hyvä component. Check the page with your own theme on staging.
Requirements and install
The package needs PHP 8.1 or later, magento/framework 103.0 or later, the Magento_Contact, Magento_Backend and Magento_Ui modules, and mage2kishan/module-core, which Composer installs for you. Its README lists Magento Open Source and Adobe Commerce 2.4.4 to 2.4.8. It is released under the MIT License and is free to use.
Install with composer require mage2kishan/module-advanced-contact-us, then run bin/magento setup:upgrade and clean the cache. Disabling the module brings back the stock contact page; the submissions table stays in the database until you remove it.
Read the package README and the user guide for the full settings list, matching them to the release you install.
Developer notes
These names are from release 1.1.13 of the package.
- Module
Panth_AdvancedContactUs, namespacePanth\AdvancedContactUs. No plugins, preferences, observers, console commands or cron jobs are declared. The package ships no i18n directory. - Frontend route
contactis registered beforeMagento_Contact, served byController\Index\Index(GET) andController\Index\Post(POST). Admin routepanthcontact; UI listingpanth_contact_submission_listing. - While the module is enabled, the index action adds layout handle
panth_advancedcontactus_form, which removes the stock blocks and adds the non-cacheable blockpanth.contact.formwith view modelViewModel\ContactForm. - A custom form template should call
$viewModel->getAntiSpamFieldsHtml()inside the form. If it is left out,Block\Frontend\Forminjects the fields into the first form tag it finds. The honeypot field iswebsite_urland the timestamp field is_timestamp. Model\Spam\ContentGuard::detect()returns the block reason or null.Controller\Index\Postvalidatesform_key. An invalid key returns JSON with HTTP 403 when theajaxparameter is set and Magento's standard redirect otherwise. Normal responses are JSON withajax, otherwise a redirect to/contactwith a session message.- With the module disabled, the POST goes to
Magento\Contact\Controller\Index\Post, or returns a not found error when stock Contact Us is also disabled. - Email templates:
panth_advancedcontact_admin_notificationandpanth_advancedcontact_customer_confirmation. - ACL resources:
Panth_AdvancedContactUs::config,::contact,::submission_view,::submission_statusand::submission_delete. - Table
panth_contact_submissioncolumns:submission_id,name,email,telephone,subject,message,custom_fields(JSON text),status(0 New, 1 Read, 2 Replied),ip_address,user_agent,store_idandcreated_at. Indexed onemail,status,store_idandcreated_at.
| Module Category | Forms & Communication |
|---|---|
| Best For | All Sizes |
Changelog
-
1.1.13, 2026-10-30
- Released under the MIT License: this module is free and open-source software.
-
1.1.12, 2026-10-06
- The contact form uses the shared form style on both stores. Inputs, the select and the message box are white with a 1px #D4D4D4 border and 16px text at every width. Before, they had a grey #F9FAFB fill, a 1.5px border and 14px text on desktop. Focus shows a 2px teal ring, labels are 14px semibold (13px before), error text is 14px in #B91C1C (12px before), and rows are 16px apart (20px before).
- Send Message is 44px tall (48px on phones) with 15px semibold text. Before, it was 50px with bold text.
- The page title is 36px (28px on phones). The intro line is 16px and at most 760px wide; before, it ran 1232px wide at 1440px.
- Unit tests for the contact form styles.
FAQ
Does this replace Magento's native contact form?
Yes. When the module is enabled, the /contact URL is handled by Panth Advanced Contact Us and the stock Magento_Contact form is bypassed. Disable the module to revert to the native form, no data loss.
Does it work with Hyvä themes?
The template is written for Luma and Luma-based themes and uses inline CSS and plain JavaScript. On a Hyvä storefront it renders as a self-styled page, not as a native Hyvä component. There is no separate Hyvä version of this module. Check the page with your theme on staging.
Will it conflict with reCAPTCHA?
The module has no reCAPTCHA integration. Its layout removes the stock contact form blocks, including the containers where Magento places reCAPTCHA on the contact form, so test on staging before relying on reCAPTCHA with this page. The module's own spam checks are the honeypot, content check, fill time and IP limit.
Can I export submissions?
No. The submissions grid has no export action. Its mass actions are Delete, Mark as Replied, Mark as Read and Mark as New. Submissions are stored in the panth_contact_submission table if you need to extract them another way.
What data does it store, and can I delete it?
Each submission stores the form values plus the sender's IP address, user agent and store ID. You can delete submissions one at a time or in bulk from the grid. The module has no retention setting or automatic cleanup, so decide how long you keep messages and remove old ones yourself.
Can I add a file upload field?
No. The module has no file upload field. If you need uploads on a form, look at a form builder that supports them, such as Dynamic Forms.
How do I customize the form layout?
Copy the template from view/frontend/templates/form.phtml into your theme at app/design/frontend/<Vendor>/<theme>/Panth_AdvancedContactUs/templates/form.phtml and edit. All styling is via standard CSS, no build step required.
Does it support multi-store / multi-language?
Every setting can be changed at default, website and store view scope. Storefront text passes through Magento's translation function, so you can translate it with your theme's translation files. The package ships no translation files, and some admin detail page labels are not translatable.
Questions before you install?
Send me your composer.json and I will check for conflicts first. Free. Installation is +$45, custom work is quoted first.