{"id":83708,"date":"2017-05-16T06:00:07","date_gmt":"2017-05-16T06:00:07","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=83708"},"modified":"2024-01-04T12:40:02","modified_gmt":"2024-01-04T12:40:02","slug":"magento-2-ajax-contact-form","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/","title":{"rendered":"Magento 2 Ajax Contact Form"},"content":{"rendered":"<p>Magento 2 Ajax Contact Form is an amazing module that allows the customers to contact the store easily. The contact form is Ajax based, which means the page doesn&#8217;t need to refresh, the customer stays on the same page. The customer can view the name, email, and store address with Google Maps location inside the contact form.<\/p>\n<p><strong>Please Note<\/strong> &#8211; For display Google Maps inside the contact form, you need to create the <a href=\"https:\/\/developers.google.com\/maps\/documentation\/javascript\/get-api-key\" target=\"_blank\" rel=\"noopener noreferrer\">Maps API Key<\/a>. Also, you need to get the store coordinates using the <a href=\"https:\/\/www.google.com\/maps\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google Maps<\/a>.<\/p>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Features<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<ul>\n<li>The admin can enter the default address and coordinates of the store<\/li>\n<li>Select where to display the contact us button &#8211; top left or top right.<\/li>\n<li>Show Google Maps store location within the contact us form.<\/li>\n<li>The admin can select yes to Show Email Id on the Frontend.<\/li>\n<li>Customers see thank you message clicking send button.<\/li>\n<li>Display name, email, and full address inside the contact us form.<\/li>\n<li>Set the inbox email address for receiving the messages.<\/li>\n<li>Mail Template can be customized.<\/li>\n<li>The module source code is open for customization.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Installation<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p>To install this extension, please follow each and every step carefully as follows:<\/p>\n<h3>Step 1:<\/h3>\n<p>After extracting the downloaded zip file and you will get the <strong>src<\/strong> folder. Inside <strong>src<\/strong> folder, you will find the <strong>app<\/strong> folder, copy the <strong>app<\/strong> folder to the Magento2 root directory. Please view the below screenshot.<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/02\/2017-02-28_12-22-45.png\" alt=\"Magento2 Admin Buyer Chat Installation\" width=\"800\" height=\"386\" loading=\"lazy\" \/><\/p>\n<h3>Step 2:<\/h3>\n<p>After the successful installation, you have to run these commands in the\u00a0Magento2 root directory.<\/p>\n<p><strong>First command &#8211;<\/strong><\/p>\n<pre>php bin\/magento setup:upgrade<\/pre>\n<p><strong>Second Command &#8211;<\/strong><\/p>\n<pre class=\"\">php bin\/magento setup:di:compile<\/pre>\n<p><strong>Third Command &#8211;<\/strong><\/p>\n<pre>php bin\/magento setup:static-content:deploy<\/pre>\n<p>After running the commands, you need to flush the cache and reindex all from the Magento2 admin panel. Navigate through <strong>System&gt;Cache Management<\/strong>. Click <strong>Flush Magento Cache<\/strong> button as shown below:<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/02\/2017-02-28_12-09-25.png\" alt=\"Magento2 Cache Management\" width=\"800\" height=\"766\" loading=\"lazy\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Multi-Lingual Configuration<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p>\u00a0For Multilingual support, please navigate. <strong>Store&gt;Configuration&gt;General &gt;Locale Options<\/strong>. And select your desired language from the <strong>Locale<\/strong> option.<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/02\/2017-02-28_12-40-51.png\" alt=\"Magento2 Change Language\" width=\"800\" height=\"755\" loading=\"lazy\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Language Translation<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<p>If you need to do the module translation, please navigate the following path in your system. <strong>app\/code\/Webkul\/Ajaxcontactform\/i18n<\/strong>. Open the file named <strong>en_US.CSV<\/strong> for editing as shown in below screenshot.<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/02\/22-3.png\" alt=\"Magento2 Change CSV language file\" width=\"800\" height=\"400\" loading=\"lazy\" \/><\/p>\n<p>Once you have opened the file for editing. Replace the words after the<strong> comma(,)<\/strong> on the right with your translated words.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-240033\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/screenshot_1-3.png\" alt=\"screenshot_1-3\" width=\"800\" height=\"556\" loading=\"lazy\" \/><\/p>\n<p>After editing the CSV file, save it and then upload it to the same folder. Now your module translation is complete.<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/02\/2016-05-02_16-25-34-3.png\" alt=\"Magento2 Change CSV Language file\" width=\"800\" height=\"399\" loading=\"lazy\" \/><\/p>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Google Maps API Key and Coordinates<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p>After the module installation, you need to get the Google Maps API key and store coordinates. These two things will be required at the time of widget configuration.<\/p>\n<h3>API Key<\/h3>\n<p>Please visit the following <a href=\"https:\/\/developers.google.com\/maps\/documentation\/javascript\/get-api-key\">link<\/a> for getting the API Key. Log into your Google account and then click<strong> GET A KEY<\/strong> button as visible below:<\/p>\n<p><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/2017-05-15_16-56-08.png\"><img decoding=\"async\" class=\"alignnone wp-image-83720 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/2017-05-15_16-56-08.png\" alt=\"api\" width=\"800\" height=\"638\" loading=\"lazy\" \/><\/a><\/p>\n<p>A pop-up window will appear, <strong>Create Project<\/strong> and give any name to it. Then, click <strong>ENABLE API<\/strong>.<\/p>\n<p><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/2017-05-15_16-56-42.png\"><img decoding=\"async\" class=\"alignnone wp-image-83721 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/2017-05-15_16-56-42.png\" alt=\"create\" width=\"800\" height=\"638\" loading=\"lazy\" \/><\/a><\/p>\n<p>After few seconds, the API Key will be generated. Copy the API key, it will be used at the time of widget configuration.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-83719 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/2017-05-15_16-54-34.png\" alt=\"copy\" width=\"800\" height=\"638\" loading=\"lazy\" \/><\/p>\n<h3>Store Coordinates<\/h3>\n<p>To find your store coordinates please go to the <a href=\"https:\/\/www.google.com\/maps\">Google Maps<\/a> website and enter your store name, address, locality, or any nearby place. After that, right-click on the place or area on the map and select <strong><em>What&#8217;s here?<\/em><\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-260433\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Screenshot_65_.png\" alt=\"Screenshot_65_\" width=\"800\" height=\"363\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Screenshot_65_.png 1344w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Screenshot_65_-300x136.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Screenshot_65_-1200x545.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Screenshot_65_-250x113.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Screenshot_65_-768x349.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/p>\n<p>Now, at the bottom, you\u2019ll see a card with the coordinates. Copy the coordinates, it will be used in the widget configuration.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-260435\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/New_York_Google_Maps.png\" alt=\"New_York_Google_Maps\" width=\"800\" height=\"361\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/New_York_Google_Maps.png 1349w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/New_York_Google_Maps-300x135.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/New_York_Google_Maps-1200x541.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/New_York_Google_Maps-250x113.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/New_York_Google_Maps-768x346.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div class=\"wk-index-wrap\">\n<h3 class=\"index-title\">Admin Configuration<\/h3>\n<\/div>\n<p>After the successful installation of the module, the admin needs to configure the module by navigating through <strong>Stores&gt; Configuration&gt; Ajax Contact Form<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-240100\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/config-admin-2.png\" alt=\"config-admin-2\" width=\"800\" height=\"880\" loading=\"lazy\" \/><\/p>\n<p>The admin needs to configure general settings:<\/p>\n<ul>\n<li><strong>Map Status:<\/strong> The admin can enable\/ disable map status.<\/li>\n<li><strong>Maps API Key:<\/strong> Here, the admin needs to enter the generated Google API key.<\/li>\n<li><strong>Set Default Address:<\/strong> The admin needs to enter the default address of the store.<\/li>\n<li><strong>Show Email ID on Frontend:<\/strong> Select Yes to show the Email ID on the frontend.<\/li>\n<li><strong>Map Coordinates:<\/strong> Here, the admin needs to enter the generated Google maps coordinates.<\/li>\n<li><strong>Select Ajax Contact us Email Template:<\/strong> The selected email template will be used to contact the customer. The mail templates can even be customized.<\/li>\n<\/ul>\n<h3 class=\"panel-title\">Widget Configuration<\/h3>\n<\/div>\n<div class=\"panel-body\">\n<p>After the module configuration, the admin needs to navigate to <strong>Content&gt;Pages<\/strong>. The following page will open, select the page where you want to display the <strong>Contact Form<\/strong>, click <strong>Edit<\/strong> option.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-240103\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/new.png\" alt=\"new\" width=\"800\" height=\"880\" loading=\"lazy\" \/><\/p>\n<p>Now, go to the <strong>Content<\/strong> section, and click on<strong> the Insert Widget<\/strong> icon.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-239865\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/insert-widget-6.png\" alt=\"insert-widget-6\" width=\"800\" height=\"880\" loading=\"lazy\" \/><\/p>\n<p>A pop-up window will appear, select <strong>Widget Type<\/strong> as <b>Ajax Contact Form.<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-263013\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/webkul-magento-ajax-form-insert-widget-1.png\" alt=\"webkul-magento-ajax-form-insert-widget-1\" width=\"800\" height=\"613\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/webkul-magento-ajax-form-insert-widget-1.png 1184w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/webkul-magento-ajax-form-insert-widget-1-300x230.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/webkul-magento-ajax-form-insert-widget-1-250x192.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/webkul-magento-ajax-form-insert-widget-1-768x588.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/p>\n<p>After that, the following options will be available for the Ajax Contact Form settings:<\/p>\n<h3>Widget Options:<\/h3>\n<p><strong>Alignment<\/strong> &#8211; Select where to display the Contact Us button. Left or Right.<\/p>\n<p><strong>Title<\/strong> &#8211; Enter the title which will appear on the front-end in the contact us form.<\/p>\n<p><strong>Address<\/strong> &#8211; Enter the store address which will appear in the contact us form.<\/p>\n<p><strong>Email<\/strong> &#8211; Enter the store email which will appear in the contact us form.<\/p>\n<p><strong>Show Full Address<\/strong> &#8211; Select Yes to display the complete store address.<\/p>\n<p><strong>Thank You Message<\/strong> &#8211; Enter the content for the thank you message which will appear after clicking the send button.<\/p>\n<p>Click <strong>Insert Widget<\/strong> when done.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-263014\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-Pages-Elements-Content-Magento-Admin.png\" alt=\"Home-Page-Pages-Elements-Content-Magento-Admin\" width=\"800\" height=\"390\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-Pages-Elements-Content-Magento-Admin.png 1349w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-Pages-Elements-Content-Magento-Admin-300x146.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-Pages-Elements-Content-Magento-Admin-1200x584.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-Pages-Elements-Content-Magento-Admin-250x122.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-Pages-Elements-Content-Magento-Admin-768x374.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/> After setting up the widget options, the widget will appear in the content section. Click <strong>Save<\/strong>\u00a0to apply your changes.<\/p>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">User Front-End View<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p>On the front-end, the users will be seeing the contact us button on top.<\/p>\n<p><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/contact-us-button.png\"><img decoding=\"async\" class=\"aligncenter wp-image-83759\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/contact-us-button.png\" alt=\"contact us\" width=\"800\" height=\"416\" loading=\"lazy\" \/><\/a><\/p>\n<p>After clicking the Contact Us button, the following form will appear. The users will view the name, address, and email. It will also show the store location in Google Maps.<\/p>\n<p>The users need to enter their name, email, subject, and message content. After that click Send button and the message will be sent to the configured email address.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-263005\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-1-1.png\" alt=\"Home-Page-1-1\" width=\"800\" height=\"390\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-1-1.png 1349w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-1-1-300x146.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-1-1-1200x584.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-1-1-250x122.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-1-1-768x374.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/p>\n<p>After clicking the Send button, the users will see a thank you message inside the contact us form.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-263003\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-2.png\" alt=\"Home-Page-2\" width=\"800\" height=\"390\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-2.png 1349w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-2-300x146.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-2-1200x584.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-2-250x122.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Home-Page-2-768x374.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>Just after the form is completely filled and send from the customer end, the admin will receive an email on the email ID that is configured in the backend. The email at the admin end will be similar as shown in the image below:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-262998\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/screenshot_from_2020_08_12_14_17_11.png\" alt=\"screenshot_from_2020_08_12_14_17_11\" width=\"800\" height=\"224\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/screenshot_from_2020_08_12_14_17_11.png 1225w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/screenshot_from_2020_08_12_14_17_11-300x84.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/screenshot_from_2020_08_12_14_17_11-1200x336.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/screenshot_from_2020_08_12_14_17_11-250x70.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/screenshot_from_2020_08_12_14_17_11-768x215.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/p>\n<p>Thank you for viewing this blog for the Magento 2 Ajax Contact Form extension. If you have any query or need more information, please visit <a href=\"https:\/\/webkul.uvdesk.com\/en\/\">webkul.uvdesk.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento 2 Ajax Contact Form is an amazing module that allows the customers to contact the store easily. The contact form is Ajax based, which means the page doesn&#8217;t need to refresh, the customer stays on the same page. The customer can view the name, email, and store address with Google Maps location inside the <a href=\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":135,"featured_media":83709,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[986,4816,2070],"class_list":["post-83708","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento2","tag-ajax-contact-form","tag-contact-us","tag-magento2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento 2 Ajax Contact Form | Contact Us Widget<\/title>\n<meta name=\"description\" content=\"Show Ajax Based Contact Us form in your store. Display name, email, Google Maps location inside the form. Set inbox email and alignment for the form.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 2 Ajax Contact Form | Contact Us Widget\" \/>\n<meta property=\"og:description\" content=\"Show Ajax Based Contact Us form in your store. Display name, email, Google Maps location inside the form. Set inbox email and alignment for the form.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rk225\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-16T06:00:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-04T12:40:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Magento-2-Ajax-Contact-Form.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rohit Kashyap\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Magento 2 Ajax Contact Form | Contact Us Widget\" \/>\n<meta name=\"twitter:description\" content=\"Magento 2 Ajax Contact Form is an amazing module that allows the customers to contact the store easily. The contact form is Ajax based, which means the page doesn&#039;t need to refresh, the customer stays on the same page. The customer can view the name, email, and store address with Google Maps location inside the contact form.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Magento-2-Ajax-Contact-Form.png\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/rohitk225\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rohit Kashyap\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/\"},\"author\":{\"name\":\"Rohit Kashyap\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/8af0383ed18e56d4b0a71504f0d3dac6\"},\"headline\":\"Magento 2 Ajax Contact Form\",\"datePublished\":\"2017-05-16T06:00:07+00:00\",\"dateModified\":\"2024-01-04T12:40:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/\"},\"wordCount\":1032,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Magento-2-Ajax-Contact-Form.png\",\"keywords\":[\"Ajax Contact Form\",\"contact us\",\"Magento2\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/\",\"url\":\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/\",\"name\":\"Magento 2 Ajax Contact Form | Contact Us Widget\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Magento-2-Ajax-Contact-Form.png\",\"datePublished\":\"2017-05-16T06:00:07+00:00\",\"dateModified\":\"2024-01-04T12:40:02+00:00\",\"description\":\"Show Ajax Based Contact Us form in your store. Display name, email, Google Maps location inside the form. Set inbox email and alignment for the form.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Magento-2-Ajax-Contact-Form.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Magento-2-Ajax-Contact-Form.png\",\"width\":\"825\",\"height\":\"260\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Magento 2 Ajax Contact Form\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/8af0383ed18e56d4b0a71504f0d3dac6\",\"name\":\"Rohit Kashyap\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2a03958fa8ce3547181ab06e5a13c57dc5861ea7b27f90282b6eb7ae97118e58?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2a03958fa8ce3547181ab06e5a13c57dc5861ea7b27f90282b6eb7ae97118e58?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Rohit Kashyap\"},\"description\":\"Rohit Kashyap drives global promotion of digital commerce services through client success documentation, social media management, and video podcast sessions, enhancing the visibility and market reach.\",\"sameAs\":[\"https:\/\/webkul.com\/\",\"https:\/\/www.facebook.com\/rk225\",\"https:\/\/www.instagram.com\/rk225\",\"https:\/\/in.linkedin.com\/in\/rk225\",\"https:\/\/x.com\/https:\/\/twitter.com\/rohitk225\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/rohit-kashyap971\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento 2 Ajax Contact Form | Contact Us Widget","description":"Show Ajax Based Contact Us form in your store. Display name, email, Google Maps location inside the form. Set inbox email and alignment for the form.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/","og_locale":"en_US","og_type":"article","og_title":"Magento 2 Ajax Contact Form | Contact Us Widget","og_description":"Show Ajax Based Contact Us form in your store. Display name, email, Google Maps location inside the form. Set inbox email and alignment for the form.","og_url":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_author":"https:\/\/www.facebook.com\/rk225","article_published_time":"2017-05-16T06:00:07+00:00","article_modified_time":"2024-01-04T12:40:02+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Magento-2-Ajax-Contact-Form.png","type":"image\/png"}],"author":"Rohit Kashyap","twitter_card":"summary_large_image","twitter_title":"Magento 2 Ajax Contact Form | Contact Us Widget","twitter_description":"Magento 2 Ajax Contact Form is an amazing module that allows the customers to contact the store easily. The contact form is Ajax based, which means the page doesn't need to refresh, the customer stays on the same page. The customer can view the name, email, and store address with Google Maps location inside the contact form.","twitter_image":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Magento-2-Ajax-Contact-Form.png","twitter_creator":"@https:\/\/twitter.com\/rohitk225","twitter_site":"@webkul","twitter_misc":{"Written by":"Rohit Kashyap","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/"},"author":{"name":"Rohit Kashyap","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/8af0383ed18e56d4b0a71504f0d3dac6"},"headline":"Magento 2 Ajax Contact Form","datePublished":"2017-05-16T06:00:07+00:00","dateModified":"2024-01-04T12:40:02+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/"},"wordCount":1032,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Magento-2-Ajax-Contact-Form.png","keywords":["Ajax Contact Form","contact us","Magento2"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/","url":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/","name":"Magento 2 Ajax Contact Form | Contact Us Widget","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Magento-2-Ajax-Contact-Form.png","datePublished":"2017-05-16T06:00:07+00:00","dateModified":"2024-01-04T12:40:02+00:00","description":"Show Ajax Based Contact Us form in your store. Display name, email, Google Maps location inside the form. Set inbox email and alignment for the form.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Magento-2-Ajax-Contact-Form.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Magento-2-Ajax-Contact-Form.png","width":"825","height":"260"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/magento-2-ajax-contact-form\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Magento 2 Ajax Contact Form"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/8af0383ed18e56d4b0a71504f0d3dac6","name":"Rohit Kashyap","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2a03958fa8ce3547181ab06e5a13c57dc5861ea7b27f90282b6eb7ae97118e58?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2a03958fa8ce3547181ab06e5a13c57dc5861ea7b27f90282b6eb7ae97118e58?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Rohit Kashyap"},"description":"Rohit Kashyap drives global promotion of digital commerce services through client success documentation, social media management, and video podcast sessions, enhancing the visibility and market reach.","sameAs":["https:\/\/webkul.com\/","https:\/\/www.facebook.com\/rk225","https:\/\/www.instagram.com\/rk225","https:\/\/in.linkedin.com\/in\/rk225","https:\/\/x.com\/https:\/\/twitter.com\/rohitk225"],"url":"https:\/\/webkul.com\/blog\/author\/rohit-kashyap971\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/83708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/135"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=83708"}],"version-history":[{"count":40,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/83708\/revisions"}],"predecessor-version":[{"id":416718,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/83708\/revisions\/416718"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/83709"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=83708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=83708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=83708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}