Skip to content

How enquiries work

This page walks through what happens when a shopper asks a question, and how the form behaves.

  1. On a single product page, the shopper sees the Ask a question button in your chosen position.
  2. Clicking it opens a focus-trapped dialog built on the native <dialog> element. Focus moves into the form, the keyboard works as expected, and the dialog is labelled for screen readers.
  3. The shopper fills in the form (name, email, message — whichever you marked required) and submits.
  4. They see an inline success message with no page reload. On a problem, an inline error message appears instead.

The dialog respects prefers-reduced-motion, so animations are suppressed for shoppers who ask for reduced motion.

When the form is submitted, Enquire:

  1. Verifies the nonce.
  2. Screens the honeypot field.
  3. Applies the per-visitor rate limit.
  4. Sends the enquiry with wp_mail() to your recipient address.

The email includes the product name and its permalink, so you know exactly which product the question is about, and the customer’s address is set as Reply-To so you can answer directly.

Each enquiry email contains:

  • The shopper’s name and message
  • The product name and a link to it
  • The customer’s email as the Reply-To address

Nothing is stored in your database — the email in your inbox is the record.

Enquire’s small CSS and JavaScript load only on product pages. Every other page is untouched, keeping the rest of your site lean. The plugin declares WooCommerce HPOS and Cart/Checkout Blocks compatibility.

Open the email and hit reply. Because the customer’s address is the Reply-To, your response goes straight to them from your normal inbox — no separate tool or dashboard needed.