google-listings-and-ads
google-listings-and-ads copied to clipboard
Shipping Integration - Support locations not covered by other zones
WooCommerce has a shipping setting that allows the user to set shipping methods for locations not covered by any other zone. This is not included as a normal zone in the values returned by the WC_Shipping_Zones::get_zones()
method; therefore, we ignore it completely.
This is a special zone hardcoded with an ID of 0
in WooCommerce. It only applies when no other zones match an order.
Implementing support for this sounds simple enough but there might be some issues due to the complex nature of shipping zones. For example, a user might define a flat rate of 10 for some postcodes of a country and then a flat rate of 100 for all other locations. In this case, we need to make sure the rest of the country gets the rate of 100 and not 10. Currently, we group the rates by country; therefore, the user will get the rate of 10 for the country even if they've only defined it for a postcode.
Adding this feature might not be worth it depending on how many users it has and how complex it might be to implement and maintain.
yep, that's a need Locations not covered by your others zones is frequently used for export to foreign countries, as default value if not specific contries are set (example : a fixed fee for all aboard destinations) otherwise we need to set the shipping cost for all countries we sell to (exemple : you sell worldwide)