After July 2021, the 2.3.x release line will no longer receive quality updates, or user guide updates. PHP 7.3 reaches end of support in December 2021 and Adobe Commerce 2.3.x reaches end of support in September 2022. We strongly recommend planning your upgrade now to Adobe Commerce 2.4.x to help maintain PCI compliance.

Contact Us

The information on this page is intended for Adobe Commerce 2.3 customers who are on an extended support contract. The Adobe Commerce Merchant Documentation for current releases is published on the Adobe Experience League.

The Contact Us link in the footer of the store is an easy way for customers to keep in touch with you. Customers can complete the form to send a message to your store. A standard Magento installation displays the default Contact Us form. After submitting the form, a thank you message appears

It is important to understand that the default Contact Us form is rendered directly from code rather than from a CMS page.

Default Contact Us Page

The store footer includes a link to the Contact Us page that is available throughout the store.

Contact Us Link in Footer

The Luma sample data includes additional information on the Contact Us page that shows how you might customize the page for your store.

Contact Us Page

Configure the Contact Us form

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel under General, choose Contacts.

  3. Expand Expansion selector the Contact Us section and set Enable Contact Us to Yes.

    General configuration - contact us Contact Us

  4. Expand Expansion selector the Email Options section and set the email contact options:

    General configuration - email options Email Options

    • In the Send Emails to field, enter the email address where messages from the Contact Us form are sent.

    • Set Email Sender to the store identity that appears as the sender of the message from the Contact Us form. For example: Custom Email 2.

    • Set Email Template to the template that is used for messages sent from the Contact Us form.

  5. When compete, click Save Config.

Customize the content

Method 1: Using sample data

The Luma sample data includes a Contact Us Info block that can be customized for your store. The contact-us-info block can be easily modified to add your own content to the Contact Us page.

  1. On the Admin sidebar, to to Content > Elements > Blocks.

  2. Find the Contact Us Info block in the list and open in Edit mode.

    Contact Us Info

  3. Scroll down to the Content field and make any necessary changes.

    • Use the editor toolbar to format the text, and add images and links.

    • Click Show / Hide Editor to work directly with the HTML.

    Content block - contact us example Contact Us Demo Content

  4. When complete, click Save Block.

Method 2: Without sample data

  1. Create a CMS page for the Contact Us form:

    • Follow the standard instructions to create a new page, with the following settings:

      Page Title: Contact Us Content Heading: Contact Us

    • Under Search Engine Optimization, enter the following settings:

      URL Key: contact Meta Tile: Contact Us

    • Under Design, set Layout to 1 column.

  2. Under Content, do the following:

    • Add any information that you want to include. The content that you enter will appear to the left of the form.

    • If you want to align your content with the top of the form, enclose it in a <div> tag that floats left as shown in the following example:

      Example

      <div style="float: left; padding-right: 15px;">
      <p>We'd love to hear from you!</p>
      <img src="{{media url="wysiwyg/home/home-erin.jpg"}}" alt="" />
      </div>
      
  3. Click Show / Hide Editor to remove the toolbar. Then, paste the following code on a line below the content that you entered in the last step.

    “Contact Us”

     {{block class="Magento\Contact\Block\ContactForm"
     name="contactForm" template="Magento_Contact::form.phtml"}}
    
  4. When complete, click Save Page.

    Your custom form now appears instead of the default form whenever a customer clicks the Contact Us link in the footer. Make sure to test your content on a mobile device to ensure that it renders correctly.

    Example storefront - custom Contact Us page Contact Us Custom Page