Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37
  1. #1
    Join Date
    Jul 2007
    Posts
    69
    Plugin Contributions
    0

    Default Post Office CASS Address Verification module

    Hi Zenners,

    I've developed some code for ZenCard that will scrub the address a customer inputs via the United States Post Office CASS Address Verification API. If you want to see it in action, try filling in a gift subscription on this page:

    http://www.yesmagazine.org/store/ind...products_id=70

    If you enter a correct address, on the shopping cart page you will see that the address is in the correct format, including zip+5. If you enter a bad address, you will see a prompt that alerts you to a problem with the USPS and asks if you want to correct the address or continue with it as entered.

    I did a search on this forum and didn't see that anybody had developed something like this before. So I thought I'd put it out there and see if anybody is interested in having me wrap this code up into a module and making it open source. If you're interested, let me know.

    Kevin Audleman

  2. #2
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module

    I would like to see it, I have a site I could use this on.
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #3
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module

    Please package the module and add it to the Free Add Ons section, I am sure it will be useful to many folks.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Jul 2008
    Posts
    63
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module

    I am developing a site right now and am very close to going live. I have been looking for exactly this kind of mod. Please post as soon as you can so that I might be able to put it on our new site. Very excited. Thanks.

  5. #5
    Join Date
    Jul 2007
    Posts
    69
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module - BETA version available here!

    Hi gang,

    I just finished wrapping up my code into a module. Here it is in beta form. I would call it a very strong beta, as I've been running the code on my site for almost a year (I just don't know what little issues might come up when somebody installs it fresh).

    It is a very easy install as it doesn't touch any core files. Give it a go and let me know if you have any issues. I'll be happy to help debug them.

    Cheers,
    Kevin
    Attached Files Attached Files

  6. #6
    Join Date
    Jul 2007
    Posts
    69
    Plugin Contributions
    0

    Default New version 1.1 fixes missing configuration value

    Hello,

    Please use this new version 1.1. It fixes a problem where the sql patch file was missing a configuration value that allows you to toggle the module on/off!

    Cheers,
    Kevin Audleman
    Attached Files Attached Files

  7. #7
    Join Date
    Jul 2007
    Posts
    69
    Plugin Contributions
    0

    Default Another bug fix, version 1.2 released

    Thanks to Jason for discovering a hard-coded table name in a sql query. Download the latest version, v 1.2, for a fix. If you want to make the fix yourself, go into the file

    /includes/classes/observers/class.cass_validation.php

    Around line 73 you will see this line:

    $zone_query = "SELECT zone_code FROM zen_zones WHERE zone_id = " . $cass_address->fields['entry_zone_id'];

    Replace it with this one:

    $zone_query = "SELECT zone_code FROM ".TABLE_ZONES." WHERE zone_id = " . $cass_address->fields['entry_zone_id'];


    Cheers,
    Kevin Audleman
    Attached Files Attached Files

  8. #8
    Join Date
    Jul 2008
    Posts
    63
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module

    Hi Kevin,
    Sorry it took me so long to get back to this.
    I have the mod installed. My site is live.
    Everything seems to be working just fine.
    It's really great.
    Thank you for the contribution.

    Just a note to anyone else looking to install this mod:
    The USPS process may indeed be quite tiresome.
    On this page:
    http://www.usps.com/webtools/webtoolsapirequestform.htm
    Be sure to only check the top box. All of the rest are invalid uses of the API. I don't know why they feel like they need to quiz the customers. Anyhow, if you pick more than the top box, you'll have to beg and plead and explain yourself. Then maybe they'll let you in.
    Also, do not expect quick service, friendly communication, or a helpful staff. So as long as you're prepared, no worries. Just be patient.

    Cheers.
    Jason

  9. #9
    Join Date
    Dec 2008
    Location
    Long Beach, WA
    Posts
    10
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module

    Quote Originally Posted by patternman View Post
    Hi Kevin,
    Sorry it took me so long to get back to this.
    I have the mod installed. My site is live.
    Everything seems to be working just fine.
    It's really great.
    Thank you for the contribution.

    Just a note to anyone else looking to install this mod:
    The USPS process may indeed be quite tiresome.
    On this page:
    http://www.usps.com/webtools/webtoolsapirequestform.htm
    Be sure to only check the top box. All of the rest are invalid uses of the API. I don't know why they feel like they need to quiz the customers. Anyhow, if you pick more than the top box, you'll have to beg and plead and explain yourself. Then maybe they'll let you in.
    Also, do not expect quick service, friendly communication, or a helpful staff. So as long as you're prepared, no worries. Just be patient.

    Cheers.
    Jason
    While I can be patient. I have a client that might not be. How soon after you put in the request form did you get a response. I'm hoping I receive an email affirmative that will let me know when I can configure everything else.

  10. #10
    Join Date
    Jul 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module

    how do i do validation on the billing address too
    whats the best way to do the same validation for billing as for the shipping address

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. v151 USPS module version for RateV4, Zen Cart 1.5? / "Online Rate" vs. "Post Office Price"
    By CarolineBogart in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 10 Dec 2012, 03:36 AM
  2. Addon payment module not catching Failed Address Verification
    By jumpweb in forum Addon Payment Modules
    Replies: 0
    Last Post: 11 Oct 2011, 05:09 PM
  3. South African Post Office
    By windpower in forum Addon Shipping Modules
    Replies: 2
    Last Post: 19 Jan 2011, 03:51 PM
  4. Finnish post office shipping modules
    By pasi in forum Addon Shipping Modules
    Replies: 13
    Last Post: 11 Aug 2010, 04:34 PM
  5. shipping to post office box
    By jclegg in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Jun 2006, 11:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR