Website Building » WooCommerce » How Do I Add Pickup or Delivery in WooCommerce?

How Do I Add Pickup or Delivery in WooCommerce?

Last updated on October 1, 2022 @ 10:07 pm

Adding pickup or delivery to WooCommerce is a great way to improve customer satisfaction and increase sales. There are two main ways to do this: using an extension or adding code to your functions.php file.

Extensions are the easiest way to add pickup or delivery to WooCommerce, as they will handle all of the code for you. However, they can be expensive, so if you are on a budget you may want to consider adding the code yourself.

Adding the code yourself is not as difficult as it may seem, and it will give you more control over how the pickup or delivery system works. You will need to add a few lines of code to your functions.php file, and then configure the settings in your WooCommerce settings page.

Here are the steps to adding pickup or delivery to WooCommerce:

  1. Install and activate the extension/plugin. If you’re adding an extension, make sure to install and activate it first.

    You can do this from your WordPress dashboard by going to Plugins > Add New and searching for the extension name.

  2. Configure the extension settings. Once the extension is activated, you will need to configure its settings. This can be done from your WordPress dashboard by going to WooCommerce > Settings > Shipping tab. Here you will need to enter your pickup or delivery information.
  3. Add code to your functions.php file. If you’re adding the code yourself, you will need to add it to your child theme’s functions. You can do this by going to Appearance > Editor from your WordPress dashboard. Then, on the right hand side, select your child theme’s functions.php file from the dropdown menu.
  4. Configure the settings in your WooCommerce settings page. Once you have added the code, you will need to configure the settings in your WooCommerce settings page. This can be done from your WordPress dashboard by going to WooCommerce > Settings > Shipping tab and entering your information.

Adding pickup or delivery to WooCommerce is a great way improve customer satisfaction and increase sales. There are two main ways to do this: using an extension or adding code yo your functions. Extensions are generally speaking the easiest way especially for beginners since they handle all of coding for you however they might be expensive for some people.

If someone is on a budget, they may want considering adding the code themselves which isn’t as difficult as it seems like it would be. It’ll give people who add the code more control over how the pickup or delivery system works too which could come in handy later down the line if any unforeseen problems should arise that could easily be fixed with a bit of tinkering here and there.

Pickup Or Delivery In WooCommerce?


Installing and configuring an Extension:

PRO TIP: If you are adding a pickup or delivery option to WooCommerce, be sure to test it thoroughly before making it available to customers. There have been reports of errors when using this feature, so it is important to make sure that everything is working correctly before making it live.
  1. Install and activate the extension/plugin that suits best for what you’re looking for.
  2. Configure the extension’s settings according to what’s needed.

Adding Code Manually (advanced):

  1. Add Code (found below) to (child theme) functions.php.
[code]// Add action hook
add_action( ‘woocommerce_after_checkout_form’, ‘wdm_add_delivery_date_to_order’ );

function wdm_add_delivery_date_to_order( $order ) {

$order->update_meta_data( ‘Delivery Date’, $_POST[‘wdm_deliverydate’] );

$order->save(); // Save order meta data.
}[/code]

  1. Configure (child theme) [+]
[code]// Add field label and placeholder text.
add_filter( ‘woocommerce_checkout_fields’ , ‘customise_checkout_fields’ );

function customise_checkout_fields( $fields ) {

$fields[‘order’][‘wdm_deliverydate’] = array(
‘label’ => __(‘Delivery Date’, ‘woocommerce’), // Add custom field label.
‘placeholder’ => _x(‘Enter delivery date here…’, ‘placeholder’, ‘woocommerce’), // Add custom field placeholder.
‘required’ => true, // if false then not required field.
‘clear’ => true, // if true then it’s allow clear value stored in meta data..
); return $fields;}[/code]In conclusion, adding pick up or delivery in WooCommerce is easy and definitely worth taking some time out of one’s day in order improve customer satisfaction!

Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.