Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default USPS 1st class not turning off...

    For some reason items with a weight over 0.5lbs are going through with first class as the shipping option.
    We have to eat the shipping cost to upgrade to priority since USPS only allows first class packages to be 8oz or less.

    I should be able to turn off first class using a simple check like:

    if($shipping_weight > 0.5) { turn off first class };

    just not sure what code to use to turn off the first class option or where I should place it...

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

    Default Re: USPS 1st class not turning off...

    Ok I think I figured it out but would love some confirmation....

    at line 553 of USPS.php
    PHP Code:
    // BOF: UPS USPS
          // bof add in first class check
              
    if ($shipping_weight 0.5) {$domestic_types= (EXPRESSPRIORITY);}
            else {
    $domestic_types=MODULE_SHIPPING_USPS_TYPES;}
          
    $allowed_types explode(", "$domestic_types);
              
    //$allowed_types = explode(", ", MODULE_SHIPPING_USPS_TYPES); 

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

    Default Re: USPS 1st class not turning off...

    well that check did not work... but it all becomes a mute point! Our shipping program just updated and it is allowing first class parcel up to 0.8lb, as it should have before.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: USPS 1st class not turning off...

    The $shipping_weight is not available to you, where you are checking it so it evaluates as 0 ...

    Above the IF in your code, add:
    Code:
    global $shipping_weight;

    See if that doesn't work for you, to get this working the way you need it to ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: USPS 1st class not turning off...

    NOTE: I am not seeing the 8oz limit you refer to on the USPS site:
    https://www.usps.com/send/first-class.htm
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v153 USPS not showing 1st-Class Intl Lg. Env
    By fright-rags in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 20 Dec 2014, 05:28 PM
  2. v151 USPS 1st Class Large Env Rates still seem to be off...?
    By CabinetGuy in forum Addon Shipping Modules
    Replies: 7
    Last Post: 17 Nov 2014, 07:34 PM
  3. 1st Class and 1st Class recorded for different categories
    By fabsanchez in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 29 Nov 2009, 09:58 PM
  4. USPS Mod Not Including Priority Intl Flat Box & 1st Class Intl Pkg?
    By thezombified in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 6 Aug 2009, 05:06 AM
  5. USPS - 1st class postage
    By lwilliams374 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 8 Jun 2006, 05:09 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