Hi @gnfb
Thanks for clarifying. To answer your questions:
I was looking for setup integration with the costs, zone
The WooCommerce site has a tutorial covering how to apply costs, here: https://woocommerce.com/document/flat-rate-shipping/#setup-and-configuration
Shipping is a feature of the WooCommerce plugin. This plugin simply automates one particular zone configuration, so there’s nothing to document beyond the installation steps.
In the rural you list all the postcodes but you dont in the non rural
There’s two points to keep in mind:
- WooCommerce has no concept of rural and non-rural addresses by default
- A rural address can only be verified by its postcode
Due to the first point, WooCommerce doesn’t understand there can be a relationship between a zone region and a postcode.
This plugin configures shipping zones so that if a rural postcode doesn’t exist for a zone, the non-rural zone region is used instead. This approach aligns with a default WooCommerce install (to be clear, zone regions are baked-in to the WooCommerce plugin) and keeps the plugin as simple as possible.
does that mean that the user has to use Manawatu-Whanganui, New Zealand in there address for it to verify it or does the say 4500 work somehow?
Here’s three scenarios with outcomes:
- If a user only enters Manawatu-Whanganui, the address is presumed to be non-rural.
- If a user enters Manawatu-Whanganui and an invalid rural postcode, the address is presumed to be non-rural.
- If a user enters Manawatu-Whanganui and a valid rural postcode, the address is presumed to be rural.
This behaviour goes back to the point above that WooCommerce has no concept of rural addresses being a sub-zone within a zone, or that there can be a relationship between a zone region and a postcode. You can test this out yourself with the default shipping calculator by entering a valid rural postcode and a mismatching zone region — a shipping rate will be displayed for the the shipping zone with the rural postcode.
It’s possible, of course, to manually set the shipping zones up to use postcodes for non-rural addresses if you prefer.