Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37
  1. #21
    Join Date
    Jul 2008
    Posts
    63
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module

    Hello Kevin,

    This module has been working very well for me for the past 2 years.
    Now that I've become more experienced with php, I'd like to refine the module a little bit for our specific web site.

    I'll explain:
    Specifically, I'd like to address the account creation and the timing of the address scrub.
    On our site, when a customer creates an account, the next screen is the shipping method and shipping address confirmation.
    At this point, the address has not yet been verified with USPS. But our website instructs the customer to inspect the address for accuracy for shipping purposes.
    The next step in the order process takes the customer to the payment information screen. Now the address has been verified and scrubbed. But this is a little too late. Here it shows the billing address.

    What I'd like to do is scrub the address immediately after the account creation. This way, when the customer comes to the shipping screen, it displays the properly verified and scrubbed address. And at that point the customer has a chance to change it.

    I've looked through the code a little bit, and found this section:
    Code:
    class cassValidation extends base {
    
      /**
       * constructor method
       * 
       * Attaches our class to the $_SESSION['cart'] class and watches for 2 notifier events.
       */
      function cassValidation() {
    
    	global $zco_notifier;
        $zco_notifier->attach($this, array('NOTIFY_HEADER_START_CHECKOUT_SHIPPING'));
    It looks like different notify headers could be used without too much trouble. Perhaps, instead of
    Code:
    NOTIFY_HEADER_START_CHECKOUT_SHIPPING
    I could use
    Code:
    NOTIFY_HEADER_END_CREATE_ACCOUNT_SUCCESS
    What do you think?
    I haven't tried any of this yet. I thought I'd ask you first.
    I've become fairly comfortable making code changes, so please don't be shy about it.

    Thanks so much for your help.
    Cheers.
    Jason

  2. #22
    Join Date
    Jul 2008
    Posts
    63
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module

    Hi,

    I tried that one. No luck.
    I guess I'll need some help with this.

    I don't really know where to go from here.
    I've tried to examine the code, but I can't figure out what else determines the timing of the scrub.

    Thanks.
    Jason

  3. #23
    Join Date
    Nov 2003
    Posts
    1,155
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module

    Anyone know where you sign up for a USPS account to use this CASS?

    The link provided in the CASS 1.2 file no longer works:

    http://www.usps.com/webtools/webtoolsapirequestform.htm

    Maybe here?:

    Address Matching System Application Program Interface

    https://www.usps.com/business/addres...-products.htm?

    Thanks

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

    Default Re: Post Office CASS Address Verification module

    Hi,

    Sorry for taking so long to reply.

    Try this page to get started:
    https://www.usps.com/business/webtools.htm

    Scroll down a little to where it says:
    Register now to use USPS Web Tools ›
    Hope this helps.
    Cheers.

  5. #25
    Join Date
    Nov 2003
    Posts
    1,155
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module

    Great, thanks!

    What's the difference between the "Web Tools API" and the "Address Information API" ?

    Address Information API mentions "Make sure mailing addresses are correct. With each tool, up to five lookups can be processed per request. Additional permission is required to use these Ecommerce APIs"

    https://www.usps.com/business/webtools.htm
    https://www.usps.com/business/webtoo...nformation.htm

    Thanks

  6. #26
    Join Date
    Jul 2008
    Posts
    63
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module

    Hi,
    It's been so long at this point that I really don't remember.
    I think the web tools is an overall category of APIs and the address tools is a subcategory of the web tools.

    Cheers.
    Jason A.

  7. #27
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: Post Office CASS Address Verification module

    Quote Originally Posted by patternman View Post
    Hi,

    I tried that one. No luck.
    I guess I'll need some help with this.

    I don't really know where to go from here.
    I've tried to examine the code, but I can't figure out what else determines the timing of the scrub.

    Thanks.
    Jason
    Jason- Any luck on moving the validation?
    I was thinking that moving the address validation to the account creation may be a good option.
    Validate it once and be done with it!

  8. #28
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: Post Office CASS Address Verification module

    Well I tried a TON of ways to move this so it would occur at "NOTIFY_HEADER_START_CREATE_ACCOUNT_SUCCESS" with NO luck
    I went as far as trying to include it at the top of the tpl_create_account_success_default.php file, that didn't work either!

    Ultimately what I would like to do is have this triggered by 'NOTIFY_HEADER_START_CREATE_ACCOUNT_SUCCESS' as well as by 'NOTIFY_HEADER_ADDRESS_BOOK_ENTRY_UPDATE_DONE' and 'NOTIFY_HEADER_ADDRESS_BOOK_ADD_ENTRY_DONE' so that any updated/added addresses would also be validated.

    Anybody have any ideas on why these triggers won't work???
    thx

  9. #29
    Join Date
    Apr 2009
    Posts
    125
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module

    I've registered and received username/password from USPS. However, this module asks me for user ID only, and I keep getting :
    Authorization failure. You are not authorized to connect to this server.
    I guess I need to find somewhere to fill in my password. Any help?

  10. #30
    Join Date
    Jul 2008
    Posts
    63
    Plugin Contributions
    0

    Default Re: Post Office CASS Address Verification module

    Quote Originally Posted by mikestaps View Post
    Well I tried a TON of ways to move this so it would occur at "NOTIFY_HEADER_START_CREATE_ACCOUNT_SUCCESS" with NO luck
    I went as far as trying to include it at the top of the tpl_create_account_success_default.php file, that didn't work either!

    Ultimately what I would like to do is have this triggered by 'NOTIFY_HEADER_START_CREATE_ACCOUNT_SUCCESS' as well as by 'NOTIFY_HEADER_ADDRESS_BOOK_ENTRY_UPDATE_DONE' and 'NOTIFY_HEADER_ADDRESS_BOOK_ADD_ENTRY_DONE' so that any updated/added addresses would also be validated.

    Anybody have any ideas on why these triggers won't work???
    thx
    Hi, Sorry for the delay. I was on holiday for a couple of weeks.
    Unfortunately, I had no luck either.
    I got tired of playing with it. I would have to really get into the small details of the code to get it done. And I'm not really a php expert, so it would take me much longer than I'm willing to put into it.

    Best Regards,
    Jason

 

 
Page 3 of 4 FirstFirst 1234 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

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