Phone Orders For WooCommerce

Fill delivery date/time for Order Delivery Date Pro for WooCommerce

The Phone Orders for WooCommerce plugin lets you capture a delivery date and time when an agent creates a manual order. The Order Delivery Date Pro for WooCommerce plugin by Tyche Softwares extends this functionality, but you need to add a custom field to the phone order form and then a small PHP snippet to transfer the selected date and time to the order. This guide explains how to do both.


The Complete Code Snippet

Copy the following code and use it as described in the step‑by‑step implementation.

Visit >WooCommerce>Phone Orders>Settings>Custom fields and paste following text to 1st textarea.

 Adjust time slots to match yours!!

Use this PHP code


Step‑by‑Step Implementation

Step 1: Add the custom field to the Phone Orders form

  1. Go to WooCommerce → Phone Orders → Settings.
  2. Click the Custom fields tab.
  3. In the Order popup fields section, add a new line with the following format:textDelivery Details|delivery_details|text
  4. Click Save settings.

Now, when an agent clicks the Create order button, a pop‑up window will appear with a text field labelled Delivery Details. The agent can enter the delivery date and time in any free‑form text (e.g., “2025‑06‑01 14:00”).

Step 2: Add the PHP snippet

  • Option A (Recommended): Use the free Code Snippets plugin. Install it from Plugins → Add Newby searching for “Code Snippets”.
  • Option B: Add the code to your child theme’s functions.php file. Navigate to Appearance → Theme File Editor, open functions.php, paste the code at the bottom, and save.

Step 3: Test the integration

  1. Create a new phone order.
  2. Fill in the customer and product information as usual.
  3. Click the Create order button.
  4. In the pop‑up window, enter a delivery date and time (e.g., “2025‑06‑15 10:30”).
  5. Complete the order.
  6. Open the order in WooCommerce → Orders and scroll to the order meta section. You should see a meta key delivery_details with the value you entered.

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