How to set the map’s origin address to the customer’s billing address

Some stores offer the ability for a customer to place an order and have an item picked up from one location (billing address) and then delivered to another address (shipping address).

By using one of the included filters in our Delivery Drivers for WooCommerce plugin you are able to change the origin address in your delivery driver’s map on the order details page.

ddwc_google_maps_origin_address

Add the code snippet below to your theme’s functions.php file and it will set your origin address to the customer’s billing address.

View all filters for the Delivery Drivers for WooCommerce plugin.