Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34
  1. #11
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: K8 new rates don't seem to quote First Class > 13 oz < 15.999 oz

    Yep, I was generating logs and saw that with that edit, the rates are lower than before the edit.
    Logs to follow
    Attached Files Attached Files
    Last edited by RixStix; 19 Jan 2016 at 12:12 AM.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

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

    Default Re: K8 new rates don't seem to quote First Class > 13 oz < 15.999 oz

    Quote Originally Posted by Saintsteven View Post
    Improvement. Now my cart recognizes 13-15.99 as eligible for First Class parcels, but returns a low quote (I think).

    If I use this test product, weighing 0.9875, with no handling fee set (for simplicity), it returns an estimate of $2.80. In the absence of any online rate tables I can understand, when I compare that $2.80 to Endicia's result, they quote $3.65.

    test product: http://www.saintstevensthingery.com/...oducts_id=1802

    Again, could you attach the Shipping log file from /logs after you Zip it to your post? It would help to see the details from the log(s) file vs just the info on the site ...
    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: v1.5.5]
    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!

  3. #13
    Join Date
    Mar 2010
    Posts
    83
    Plugin Contributions
    0

    Default Re: K8 new rates don't seem to quote First Class > 13 oz < 15.999 oz


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

    Default Re: K8 new rates don't seem to quote First Class > 13 oz < 15.999 oz

    I am an idiot ...

    That suggested fix is not going to work ...I do not know what I was thinking ...
    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: v1.5.5]
    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. #15
    Join Date
    Mar 2010
    Posts
    83
    Plugin Contributions
    0

    Default Re: K8 new rates don't seem to quote First Class > 13 oz < 15.999 oz

    If YOU'RE an idiot, Ajeh, I shudder to think about the nomenclature best for me...........:)

  6. #16
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: K8 new rates don't seem to quote First Class > 13 oz < 15.999 oz

    Quote Originally Posted by Saintsteven View Post
    If YOU'RE an idiot, Ajeh, I shudder to think about the nomenclature best for me...........:)

    Ditto
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

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

    Default Re: K8 new rates don't seem to quote First Class > 13 oz < 15.999 oz

    Okay let's try this code for the > 13 and < 16 weights ...

    Change this code:
    Code:
          $usps_shipping_weight = ($shipping_weight < 0.0625 ? 0.0625 : $shipping_weight);
          $this->pounds = (int)$usps_shipping_weight;
          // usps currently cannot handle more than 5 digits on international
          // change to 2 if International rates fail based on Tare Settings
          $this->ounces = ceil(round(16 * ($usps_shipping_weight - $this->pounds), MODULE_SHIPPING_USPS_DECIMALS));
    
          // Determine machinable or not
    with this code:
    Code:
          $usps_shipping_weight = ($shipping_weight < 0.0625 ? 0.0625 : $shipping_weight);
    
          if ($this->usps_countries == 'US') {
            $this->pounds = $usps_shipping_weight;
            $this->ounces = 0;
          } else {
            $this->pounds = (int)$usps_shipping_weight;
            // usps currently cannot handle more than 5 digits on international
            // change to 2 if International rates fail based on Tare Settings
            $this->ounces = ceil(round(16 * ($usps_shipping_weight - $this->pounds), MODULE_SHIPPING_USPS_DECIMALS));
    // $this->ounces = round(16 * ($this->usps_weight - $this->pounds), 3);
    //$check_ounces = $this->ounces = round(16 * ($usps_shipping_weight - $this->pounds), 3);
          }
    
    //echo 'USPS Rate Type: ' . MODULE_SHIPPING_USPS_RATE_TYPE . '<br>';
    //echo 'order delivery country: ' . $order->delivery['country']['id'] . ' $this->usps_countries: ' . $this->usps_countries . ' - SHIPPING_BOX_WEIGHT: precent:weight ' . SHIPPING_BOX_WEIGHT . '<br>';
    //echo ' $shipping_weight: ' . $shipping_weight . ' $usps_shipping_weight: ' . $usps_shipping_weight . ' $this->pounds: ' . $this->pounds . ' $this->ounces: ' . $this->ounces . ' $check_ounces: ' . $check_ounces . '<br>';
    
          // Determine machinable or not
    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: v1.5.5]
    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!

  8. #18
    Join Date
    Mar 2010
    Posts
    83
    Plugin Contributions
    0

    Default Re: K8 new rates don't seem to quote First Class > 13 oz < 15.999 oz

    Quote Originally Posted by Ajeh View Post
    Okay let's try this code for the > 13 and < 16 weights ...

    Change this code:
    Code:
          $usps_shipping_weight = ($shipping_weight < 0.0625 ? 0.0625 : $shipping_weight);
          $this->pounds = (int)$usps_shipping_weight;
          // usps currently cannot handle more than 5 digits on international
          // change to 2 if International rates fail based on Tare Settings
          $this->ounces = ceil(round(16 * ($usps_shipping_weight - $this->pounds), MODULE_SHIPPING_USPS_DECIMALS));
    
          // Determine machinable or not
    with this code:
    Code:
          $usps_shipping_weight = ($shipping_weight < 0.0625 ? 0.0625 : $shipping_weight);
    
          if ($this->usps_countries == 'US') {
            $this->pounds = $usps_shipping_weight;
            $this->ounces = 0;
          } else {
            $this->pounds = (int)$usps_shipping_weight;
            // usps currently cannot handle more than 5 digits on international
            // change to 2 if International rates fail based on Tare Settings
            $this->ounces = ceil(round(16 * ($usps_shipping_weight - $this->pounds), MODULE_SHIPPING_USPS_DECIMALS));
    // $this->ounces = round(16 * ($this->usps_weight - $this->pounds), 3);
    //$check_ounces = $this->ounces = round(16 * ($usps_shipping_weight - $this->pounds), 3);
          }
    
    //echo 'USPS Rate Type: ' . MODULE_SHIPPING_USPS_RATE_TYPE . '<br>';
    //echo 'order delivery country: ' . $order->delivery['country']['id'] . ' $this->usps_countries: ' . $this->usps_countries . ' - SHIPPING_BOX_WEIGHT: precent:weight ' . SHIPPING_BOX_WEIGHT . '<br>';
    //echo ' $shipping_weight: ' . $shipping_weight . ' $usps_shipping_weight: ' . $usps_shipping_weight . ' $this->pounds: ' . $this->pounds . ' $this->ounces: ' . $this->ounces . ' $check_ounces: ' . $check_ounces . '<br>';
    
          // Determine machinable or not
    Eureka! (or however one might say that when someone else has found it), unless someone else spots a problem, that code fixes it for me, thank you very much!

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

    Default Re: K8 new rates don't seem to quote First Class > 13 oz < 15.999 oz

    Thanks for the update that this is able to work for you ...
    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: v1.5.5]
    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!

  10. #20
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: K8 new rates don't seem to quote First Class > 13 oz < 15.999 oz

    Looks good. Logfiles attached if you need them for any future purpose.
    0.85+0.1 pound = accurate 1st class quote
    0.88+0.1 pound = accurate 1st class quote
    0.89+0.1 pound = No 1st class quote
    0.98+0.0 pound = accurate 1st class quote
    0.99+0.0 pound = No 1st class quote.

    Not sure anyone could expect anything better. If you have any specific parameters for a dummy to test, just ask.
    Attached Files Attached Files
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v139h Problem with new USPS Shipping Module on domestic first class?
    By dbltoe in forum Addon Shipping Modules
    Replies: 22
    Last Post: 6 Feb 2018, 11:26 PM
  2. v154 USPS not showing First Class shipping rates for small items
    By andilyn in forum Addon Shipping Modules
    Replies: 1
    Last Post: 15 Apr 2015, 03:58 AM
  3. 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
  4. no USPS First Class quote
    By mitchklink in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 5 Jan 2010, 07:10 AM
  5. even when measuring in lbs, usps first class rates won't appear
    By englishdav in forum General Questions
    Replies: 2
    Last Post: 16 Dec 2009, 05:19 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