Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2008
    Posts
    103
    Plugin Contributions
    0

    Default Urgent Help Needed - USPS Module Not Working for TN only

    Please help!
    I have installed the USPS shipping module and have adjusted the settings, etc. so that the module is only available when the shipping weight exceeds 0.01lbs.
    We have several items we charge a flat rate shipping fee for, so I have set the weights of those items to be 0.

    I have a customer in TN who is trying to place an order. The weight is 0.10lbs, so the USPS module should be the only shipping option that displays...but it doesn't.
    In fact, no shipping module options display for her at all! Not even the message "we are not shipping to your area".

    I have tested myself and the USPS module displays pricing for all of the other states I've tried...TX, CA, etc. just not TN addresses.

    I have checked my zone settings, changed the USPS settings from "shipable areas" to "none" and still not working.

    I upgraded to the latest USPS module thinking it was a USPS glitch, but that didn't fix the problem either.

    I just don't know where to look at this point since it's working for all other states.

    When she removes the items with weights, the flat-rate option DOES appear, so that is working as intended.
    It's only when the weight is >0.01lbs that it doesn't working...again for TN only.

    Any ideas??

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Urgent Help Needed - USPS Module Not Working for TN only

    Quote Originally Posted by mcqueeneycoins View Post
    installed the USPS shipping module and have adjusted the settings, etc. so that the module is only available when the shipping weight exceeds 0.01lbs.
    How exactly did you go about that? (ie: tell me how to do that in my own brand new test store, after installing the latest USPS plugin)

    Quote Originally Posted by mcqueeneycoins View Post
    In fact, no shipping module options display for her at all! Not even the message "we are not shipping to your area".
    Does the whole page display properly? Or is the footer and right-side of the page disappear too? It "should" display "something", but if only half the page is being drawn, then you're running into a software PHP error. See: http://www.zen-cart.com/content.php?124-blank-page for guidance on finding the actual error details in the server's /logs/ folder.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2008
    Posts
    103
    Plugin Contributions
    0

    Default Re: Urgent Help Needed - USPS Module Not Working for TN only

    Thanks, Dr. Byte--I may have pinpointed the problem after playing with it some more, but still not sure how to solve it. I reviewed the debug file and saw a few zip code errors--it appears that if an invalid address is entered the module won't display any options, but it does not produce any error messages alerting the user to the possible invalid address--is that normal? I also answered your questions below.

    Quote Originally Posted by DrByte View Post
    How exactly did you go about that? (ie: tell me how to do that in my own brand new test store, after installing the latest USPS plugin)
    I modified the /includes/modules/shipping/flat.php file as follows:
    Code:
    // bof: turn off if weight is > 0
    if (!IS_ADMIN_FLAG) {
      if ($_SESSION['cart']->weight > 0) {
        $this->enabled = false;
      }
    }
    // eof: turn off if weight is > 0
    just after:

    Code:
          // disable only when entire cart is free shipping
          if (zen_get_shipping_enabled($this->code)) {
            $this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
          }
    That way the flat shipping option will only display when the weight = 0. I set all items eligible for flt-rate shipping with a weight of 0.


    Quote Originally Posted by DrByte View Post
    Does the whole page display properly? Or is the footer and right-side of the page disappear too? It "should" display "something", but if only half the page is being drawn, then you're running into a software PHP error. See: http://www.zen-cart.com/content.php?124-blank-page for guidance on finding the actual error details in the server's /logs/ folder.
    Yes, everything displays normally, only the shipping option is non-existent.

  4. #4
    Join Date
    Jan 2008
    Posts
    103
    Plugin Contributions
    0

    Default Re: Urgent Help Needed - USPS Module Not Working for TN only

    Dr. B--any thoughts on how to prevent the shipping option from being blank when an invalid address is entered? As of right now, no error produces to alert my customer that an invalid address was entered, and therefore only a blank shipping option section appears with no way for them to proceed to checkout. Any suggestions you have would be greatly appreciated!

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Urgent Help Needed - USPS Module Not Working for TN only

    Am I correct in understanding that entering ANY invalid zip, regardless of where in the country, no quotes show at all?

    ie: - it's not specific to TN
    - and it's not specific to USPS
    - and it's not with a misspelled city/street

    It's just with an invalid zip?


    Zen Cart, out of the box, if all shipping methods return no results (or get set to enabled=false due to validation criteria), will display "Sorry, we are not shipping to your region at this time."
    I usually find that most customers quickly realize "that doesn't make sense .... oh, I mistyped my address, lemme go fix that ... yay, now I get a shipping quote".
    But you could edit your language file to add a "hey dummy, check your address" suffix to that "we're sorry" message.

    There's currently no way to tell the USPS module to tell the customer on-screen exactly what's wrong with their address.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v151 Urgent help needed for Australia Post Shipping Module
    By louisapple in forum Addon Shipping Modules
    Replies: 6
    Last Post: 8 Sep 2015, 05:43 AM
  2. v139h New USPS shipping module not working for international orders
    By ts232 in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 14 Feb 2014, 02:26 AM
  3. v150 UPS module shipping not working, URGENT..Please help!
    By romarc3673 in forum General Questions
    Replies: 1
    Last Post: 24 Jan 2014, 04:59 PM
  4. Usps shipping module not working for international orders
    By muah in forum Addon Shipping Modules
    Replies: 3
    Last Post: 31 Jul 2013, 02:58 AM
  5. USPS module not working for many countries
    By dbrewster in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 4 Jun 2007, 04:36 AM

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