Ask a Question
The Ask a Question module adds a button to the product page that opens a contact form in a modal. Customers can ask about sizing, materials, or anything else before placing an order. Inquiries are emailed to the site admin.
The module is active by default after you install Milano, but the button stays hidden until you turn it on in the Customizer.
Turn on the button
Section titled “Turn on the button”- Go to Appearance → Customize → Product Page.
- Find the Ask a Question section.
- Turn on Show ask a question button.
- Click Publish.
The button appears in the product actions row with a question-mark icon and “Ask a question” label.
Choose a form type
Section titled “Choose a form type”You can use Milano’s built-in form or replace it with a form from a third-party plugin like Contact Form 7 or WPForms.
Default form
Section titled “Default form”The built-in form collects:
- Name (required)
- Email (required)
- Phone (optional)
- Message (required)
When a customer submits the form, the message is sent to the site admin email address via WordPress mail. The email includes the product name with a link, the customer’s name, email, phone, and their message.
Custom shortcode
Section titled “Custom shortcode”To use a third-party form:
- Go to Appearance → Customize → Product Page.
- In the Ask a Question section, set Form Type to Custom Shortcode.
- Enter the form shortcode in the Form Shortcode field. For example:
[contact-form-7 id="123"][wpforms id="456"]
- Click Publish.
The modal will render your form instead of the default one.
Requirements
Section titled “Requirements”- WooCommerce must be installed and active.