Product Enquiry Form

NOTE

This product is no longer sold on WooCommerce.com. This document has been left available for existing users, but will no longer be updated.

For an alternative solution, we recommend Jetpack. Using Jetpack’s Form Block, you can quickly add a form to any post or page. Choose from six pre-built options or customize a version to suit your needs. There’s an option available for Classic Editor users, too.

Security, performance, and marketing tools made for WooCommerce stores by the WordPress experts. Get started with basic security and speed…

Open this to see the documentation for the retired Product Enquiry Form extension


The product enquiry form extension adds a tab to each of your product pages allowing customers to contact you via form to enquiry specifically about that product. The store manager received the email and can then reply to the customer directly. The form is protected by reCAPTCHA verification.

Installation

↑ Back to top
  1. Download the extension from your dashboard
  2. Upload the plugin folder to your /wp-content/plugins/ directory
  3. Activate ‘WooCommerce Product Enquiry Form’ from the Plugins menu within WordPress

Setup and Configuration

↑ Back to top

To configure the shop manager email and reCaptcha settings:

Go to: WooCommerce > Settings > Products > Product Enquiries.

Note: Versions of this extension older than 1.2.4 have their settings shown under Settings > General.

product-enquiry-settings

Note: Product Enquiry Form supports ReCaptcha v2 and v3. (ReCaptcha Enterprise is currently not supported)

Disable the enquiry form per product

↑ Back to top

There is an option per product to disable the enquiry tab on the ‘General’ tab of the product data meta box.

Screenshot on 2014-11-25 at 16-33-48

Customer Facing Form

↑ Back to top

When enabled, the extension will display a new tab “Product Enquiry” on the product page:

Details can be entered into the form, and when your customer clicks “Send Enquiry”, an email will be sent to the store owner.

Customer Submitted Email

↑ Back to top

The form is sent as an email to the store owner only, and shows similar to below:

  • The Customer Name will be replaced with the name entered on the form
  • The customer email will be shown after their name
  • A full link to the product enquired about is listed with the name
  • The enquiry details are included

The store owner can then reply to the customer directly with any needed comments.

Hooks

↑ Back to top

There are several hooks inside the enquiry form:

product_enquiry_before_form();
product_enquiry_before_message();
product_enquiry_after_message();
product_enquiry_after_form();

Sample usage:

<?php

// Product Enquiry Form: send email to post author instead of Site Admin
add_filter( 'product_enquiry_send_to', 'wc_product_enquiry_to_author', 10, 2 );

function wc_product_enquiry_to_author( $email, $product_id ) {

    $post_author_id = get_post_field( 'post_author', $product_id );
    $post_author_email = get_the_author_meta( 'user_email', $post_author_id );

    return $post_author_email;
}
Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.