Have two zone requirements?Browser Info Environment
Quick question for you! It is hard to explain though. I've got a client who has a zone for the city of Cheney, but it's only within city limits (4 digit addresses). Is there a way to do this in the ZBS?
Just thought I'd ask!
Within the country match, you could use one or a combination of:
- Split them by zip code? I don't know the resolution of zip codes. In the UK a post code is accurate to just a few houses within cities, so it would be easy to do in the UK by post code.
- Using the 'whole address', a regular expression to match 4 digits and also the city name.
- Subsequent rules to supercede earlier mismatches with a later match. For example, add rules to then match other states, cities, zip codes etc outside the area you want and put them in other zones.
- Rules can be negative as well as positive.
The trick to remember is that an address matches the first country rule, then the last matching rule within that country. So you can use that to match the country and a close match for your city/4 digits, then design subsequent matches to supercede earlier unwanted matches.
Finally, if none of that is close enough, you could replace the class that provides the matching rules to add your own specific custom rule in php.
In amongst all my addon development plans, one of the things I would like to do in the future for ZBS is to make key areas like the address matching rules pluggable for easy extension. I just need to find the time to do it all :)
I had a feeling the postal code was the way to go. Prob is that the zip codes can be a little bit more fickle here. For the most part, it's pretty good but for the smaller cities, it can be difficult.
And dang this is such a powerful plugin. I get what it is about having time. :)