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

33 seconds

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.

https://gist.github.com/robertdevore/fa79a76704fa8dc6d831017486a7756f

View all filters for the Delivery Drivers for WooCommerce plugin.

Was this article helpful?