1. Home
  2. Docs
  3. Local Delivery Drivers for WooCommerce Premium
  4. Third-party plugins
  5. Custom Fields

Custom Fields

The custom fields feature lets you add fields from third-party plugins to the drivers’ panel.

In this example, we will add a delivery date and time from a third-party plugin to the drivers’ panel.

The result will be “Delivery Date: 1/1/2020 between 14:00-18:00

Let’s start

  • Click on the custom fields link at the plugin menu on the left side of your WordPress.
  • Click on the add new button.
  • Add a title for the custom fields, for this example we will write “Delivery Date
  • Choose the delivery date custom field from the field selection. If you can’t find it you can add a new custom field. All the fields are orders fields, and you can find their keys on the order page in the fields section.
  • Click the add custom field button.
  • Now we will add the delivery time field, choose it from the list or enter new, and in the value write the word “Between”.
  • Click the add custom field button.
  • In the sections, we will choose where to show the delivery date.
  • It can be on the drivers’ status screens and on the order page.
  • In the orders screen, we have one area and it will be at the end of each order info.
  • On the order page, it can be in multiple areas.
  • Click the publish button.

That’s it, now you can go to the drivers’ panel and see the delivery date field.

*Note:

If you are using the ACF plugin and you can’t see the custom fields metabox, you are able to get custom fields to return by adding the code below to the functions.php file within the theme.

add_filter('acf/settings/remove_wp_meta_box', '__return_false');