Patches: Browse | Submit New | Admin

[#12210] Add Canadian Province lookup to Base.rb

Date:
2007-07-12 03:40
Priority:
3
Submitted By:
Les Wight (lwight)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Add Canadian Province lookup to Base.rb

Detailed description
New post_code method that calls either existing state_from_zip for US or province_from_postal_code for CA.

Examples:

Shipping::Base.post_code("US", 63109) => "MO"
Shipping::Base.post_code("CA", "V5A 4W4") => "BC"

Shipping::Base.province_from_postal_code("V5A 4W4") => "BC"

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-07-12 03:40
Sender: Les Wight

Someone should verify the Canadian postal code lookup hash
just in case an ignorant US person like myself screwed up.

Attached Files:

Name Description Download
base.patch Patched base.rb file Download

Changes:

Field Old Value Date By
File Added2232: base.patch2007-07-12 03:40lwight