PDA

View Full Version : zipcode shipping/delivery



michael_s
06-06-2007, 11:50 AM
Stand-alone update...all bug fixes and files are included in this release.

REGEX NOW SUPPORTED! Due to popular demand, I've modified the code to allow cart
users to specify parts of zipcodes to set shipping rates to, using Regular Expression (REGEX) matching conventions. For a quick primer on REGEX, look here...

http://regexlib.com/CheatSheet.aspx

This should allow unlimited control on setting postcode-based "zones" for your cart.
The most obvious use is to use the first few characters of the post/zip code (DO NOT
USE THE * CHARACTER!! THIS WILL MESS UP THE REGEX EVALUATOR!!!) that you want to match.

USAGE

BE CAREFUL TO USE THE MORE EXACT MATCHES IN THE HIGHER ZONES! This is a crucial part of using this mod...if you use "329" in, say Zone 4, and try to use "3294" in Zone 3, THE PROGRAM WILL MATCH ALL 3294* post codes to ZONE 4 BEFORE matching it to 3294 in ZONE 3!!

In general, be careful where to place your substring match characters, and DO NOT USE the * character. I am pretty sure that and properly formed regular expression strings will be evaluated correctly by my program, but to test your REGEX, go here...

http://regexlib.com/RETester.aspx

..and play with your ideas. If they work there, they will work in your cart.


More... (http://www.oscommerce.com/community/contributions,4071)