Phone Orders For WooCommerce

Add custom fields to order or customer popups

Phone Orders lets you add custom fields to the order creation popup and the customer creation popup directly from the plugin’s settings. This guide explains how to define custom fields, which field types are supported, and how the entered information saves to the order.


How to Define Custom Fields

Step 1: Go to Phone Orders → Settings in your WordPress admin.

Step 2: Find the section labelled Add custom fields to order or Add custom fields to customer.

Step 3: In the text area, enter each custom field on a separate line using the following format:

ParameterDescription
LabelThe human‑readable text that appears next to the input field.
field_nameThe internal meta key that saves to the database. Use only lowercase letters, numbers, and underscores.
typeThe HTML input type. Supported values: textselectcheckboxradiohiddendatetime.
value1value2value3For select or radio fields, list the available options. For textdate, or time, these values are ignored.

Step 4: Click Save settings.

Example Custom Fields

The following example defines two custom fields:

What this does:

  • Gender appears as a pair of radio buttons (Male/Female). The plugin saves the selected value as order meta with the key gender.
  • Delivery Date appears as a date picker. The plugin saves the chosen date as order meta with the key delivery_date.

Other samples:


3. Supported Field Types

TypeDescription
textA standard single‑line text input.
selectA dropdown menu. Provide the options as value1value2, etc.
checkboxA single checkbox. The label appears next to the box.
radioA set of radio buttons. Provide the options as value1value2, etc.
hiddenA hidden input field (useful for passing default values).
dateA date picker (uses the browser’s native date input).
timeA time picker (uses the browser’s native time input).

Note: For select and radio fields, the first option in the list is pre‑selected by default. For checkbox fields, the field value is 1 (checked) or 0 (unchecked).


4. Where the Fields Appear

  • Order popup: When the agent clicks the Create order button, the custom fields appear in a popup window before the order finalises.
  • Customer popup: When the agent clicks the New customer button, the custom fields appear in the customer creation form.

The entered information saves as order meta (for order fields) or user meta (for customer fields). You can view the saved data on the WooCommerce → Orders edit screen or the Users profile page.


5. Making a Field Required

To make a custom field mandatory, add * before the whole line. For example:

*Gender|gender|radio|male=Male|female=Female

The agent cannot save the order or create the customer without providing a value for this field.


6. Practical Use Cases

Use CaseConfiguration
Capture a gift messageGift Message|gift_message|text
Select a delivery speedDelivery Speed|delivery_speed|select|Standard|Express|Next Day
Customer age verificationAge verification|age_verified|checkbox
Preferred contact timeContact Time|contact_time|time

Have questions? Please submit a support request. We're always happy to help!

Phone Orders
for WooCommerce
PRO

From $120
Buy
✓ 30-day money-back guarantee