Do not sell or share my personal information Skip to content

Advanced settings and customization for legacy Local Pickup

Disable local taxes when using local pickup

Local Pickup calculates taxes based on your store’s location (address) by default, and not the customer’s address. Add this snippet at the end of your theme’s functions.php to use your standard tax configuration instead:

		add_filter( 'woocommerce_apply_base_tax_for_local_pickup', '__return_false' );

	

Regular taxes is then used when local pickup is selected, instead of store-location-based taxes.

Changing the location for local taxes

To charge local taxes based on the postcode and city of the local pickup location, you need to define the shop’s base city and post code using this example code:

		add_filter( 'woocommerce_countries_base_postcode', create_function( '', 'return "80903";' ) );
add_filter( 'woocommerce_countries_base_city', create_function( '', 'return "COLORADO SPRINGS";' ) );

	

Update 80903 to reflect your preferred postcode/zip, and COLORADO SPRINGS with your preferred town or city.

Custom emails for local pickup

Shipping Address is not displayed on the admin order emails when Local Pickup is used as the shipping method.

Since all core shipping options use the standard order flow, customers receive the same order confirmation email whether they select local pickup or any other shipping option. Use this guide to create custom emails for local pickup if you’d like to send a separate email for local pickup orders: How to Add a Custom WooCommerce Email.

Last updated: August 21, 2024