You have no items in your shopping cart.

Monday, December 9, 2024 8:58:24 AM

Rate Request for Shipment with No Dimensions Defaulting Dimensions to 1 Returning Incorrect Rates.

Posted: 1 year ago

#13560 Quote
When rate request is sent for a shipment of sizeable weight but no dimensions, the rates returned are incorrect, extremely low.  The request is sent with default values of 1 in the Length, Width, and Height parameters.
When the Height, Length, and Width are set to zero, or left off completely, The correct rates are returned.

<sws:Rate>
   <sws:FromZIPCode>46898</sws:FromZIPCode>
   <sws:ToZIPCode>97132</sws:ToZIPCode>
   <sws:ToCountry>US</sws:ToCountry>
   <sws:WeightLb>17</sws:WeightLb>
   <sws:WeightOz>0</sws:WeightOz>
   <sws:PackageType>Package</sws:PackageType>
   <sws:Length>1</sws:Length>
   <sws:Width>1</sws:Width>
   <sws:Height>1</sws:Height>
   <sws:ShipDate>2023-10-12</sws:ShipDate>
   <sws:InsuredValue>207.32</sws:InsuredValue>
   <sws:ToState>WA</sws:ToState>
</sws:Rate>

Returns  (USPS Ground Advantage)
       <Rate>
          <FromZIPCode>46898</FromZIPCode>
          <ToZIPCode>98010</ToZIPCode>
          <ToCountry>US</ToCountry>
          <Amount>8.0300</Amount>
          <ServiceType>US-PS</ServiceType>
          <ServiceDescription>USPS Ground Advantage</ServiceDescription>
          <DeliverDays>4</DeliverDays>
          <WeightLb>17</WeightLb>
          <PackageType>Oversized Package</PackageType>
          <Length>1</Length>
          <Width>1</Width>
          <Height>1</Height>
          <ShipDate>2023-10-10</ShipDate>
          <DeliveryDate>2023-10-14</DeliveryDate>
          <InsuredValue>207.3870</InsuredValue>

Which is incorrect

When I send request with Zeroes or leave the dimensions off altogether, I get the correct amount compared to Stamps web site.

         <sws:Rate>
            <sws:FromZIPCode>46898</sws:FromZIPCode>
            <sws:ToZIPCode>97132</sws:ToZIPCode>
            <sws:ToCountry>US</sws:ToCountry>
            <sws:WeightLb>17</sws:WeightLb>
            <sws:WeightOz>0</sws:WeightOz>
            <sws:PackageType>Package</sws:PackageType>

            <sws:ShipDate>2023-10-12</sws:ShipDate>
            <sws:InsuredValue>207.32</sws:InsuredValue>
            <sws:ToState>WA</sws:ToState>
        </sws:Rate>

Returns

<Rate>
               <FromZIPCode>46898</FromZIPCode>
               <ToZIPCode>97132</ToZIPCode>
               <ToCountry>US</ToCountry>
               <Amount>26.0400</Amount>
               <ServiceType>US-PS</ServiceType>
               <ServiceDescription>USPS Ground Advantage</ServiceDescription>
               <DeliverDays>4</DeliverDays>
               <WeightLb>17</WeightLb>
               <PackageType>Package</PackageType>
               <ShipDate>2023-10-12</ShipDate>
               <DeliveryDate>2023-10-17</DeliveryDate>
               <InsuredValue>207.32</InsuredValue>
               <DimWeighting>N</DimWeighting>

This amount matches Stamps.com web user interface.

Can the plugin be modified to not send any dimensions if all product dimensions equal zero?

Thanks

Posted: 1 year ago

#13561 Quote

Support

Posted: 1 year ago

#13561 Quote
Upgrade the plugin. I fixed it.

Posted: 1 year ago

#13566 Quote
Leaving the dimensions off doesn't work as planned.  Without the dimensions present, the API returned very high shipping rates.  The request:

     <Rate>
        <FromZIPCode>46898</FromZIPCode>
        <ToZIPCode>97132</ToZIPCode>
        <ToCountry>US</ToCountry>
        <WeightLb>15.4359</WeightLb>
        <PackageType>Oversized Package</PackageType>
        <ShipDate>2023-10-12</ShipDate>
        <InsuredValue>207.3870</InsuredValue>
        <AddOns />
        <ToState>OR</ToState>
      </Rate>

Returned  (USPS Ground Advantage)
      <Rate>
          <FromZIPCode>46898</FromZIPCode>
          <ToZIPCode>97132</ToZIPCode>
          <ToCountry>US</ToCountry>
          <Amount>220.5000</Amount>
          <ServiceType>US-PS</ServiceType>
          <ServiceDescription>USPS Ground Advantage</ServiceDescription>
          <DeliverDays>4</DeliverDays>
          <WeightLb>15.4359</WeightLb>
          <PackageType>Oversized Package</PackageType>
          <ShipDate>2023-10-12</ShipDate>
          <DeliveryDate>2023-10-17</DeliveryDate>
          <InsuredValue>207.3870</InsuredValue>
          <DimWeighting>N</DimWeighting>

The amount should be around 26.04.

Would it be possible to update the plug-in to send zeroes in the dimensions if all items dimensions equal zero?

Thanks

Posted: 1 year ago

#13567 Quote

Support

Posted: 1 year ago

#13567 Quote
Done, Upgrade the plugin and try the new release.

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved