Created
March 28, 2014 12:51
-
-
Save ChromeOrange/9832001 to your computer and use it in GitHub Desktop.
Set the WooCommerce store city and zipcode / postcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Set the store base city and postcode / zipcode | |
*/ | |
add_filter( 'woocommerce_countries_base_city' , 'set_woocommerce_countries_base_city' ); | |
function set_woocommerce_countries_base_city() { | |
// Replace with your store town/city | |
return 'Townland'; | |
} | |
add_filter( 'woocommerce_countries_base_postcode' , 'set_woocommerce_countries_base_postcode' ); | |
function set_woocommerce_countries_base_postcode() { | |
// Replace with your store postcode / zipcode | |
return '45040'; | |
} |
@ofernandolpes you can't, WooCommerce only supports one store address.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do I configure more than one postcode at the same time? Just duplicate the code or do I postcodes separated by commas?