woocommerce / google-listings-and-ads

Sync your store with Google to list products for free, run paid ads, and track performance straight from your store dashboard.
https://woo.com/products/google-listings-and-ads/
GNU General Public License v3.0
45 stars 21 forks source link

Shipping Integration - Support locations not covered by other zones #1372

Open nima-karimi opened 2 years ago

nima-karimi commented 2 years ago

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.

image

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.

Marc-pi commented 10 months ago

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)