News:

Support the VirtueMart project and become a member

Main Menu

UPS rates are off

Started by FinallyInSeattle, September 27, 2009, 00:44:36 AM

Previous topic - Next topic

FinallyInSeattle

I've modified the UPS 1.0 module to add package dimensions, insurance & optionally add a "signature required".  However, none of these new values seems to affect the shipping price.  The rates I get returned are much lower than when I use ups.com.  Here's my sample XML, starting with the "shipment" element.  Can anyone spot what the problem is?  For this example shipment, I keep getting a ground rate of $17.49.

<Shipment> <Shipper> <Address> <PostalCode>98052</PostalCode> <CountryCode>US</CountryCode> </Address> </Shipper> <ShipTo> <Address> <PostalCode>35758</PostalCode> <CountryCode>US</CountryCode> <ResidentialAddressIndicator/> </Address> </ShipTo> <ShipFrom> <Address> <PostalCode>98052</PostalCode> <CountryCode>US</CountryCode> </Address> </ShipFrom> <Package> <PackagingType> <Code>02</Code> </PackagingType> <Dimensions> <UnitOfMeasurement> <Code>IN</Code> </UnitOfMeasurement> <Length>15.00</Length> <Width>12.00</Width> <Height>4.00</Height> </Dimensions> <PackageWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>10.0</Weight> </PackageWeight><PackageServiceOptions> <InsuredValue> <CurrenceyCode>USD</CurrenceyCode> <MonetaryValue>500.00</MonetaryValue> </InsuredValue> <DeliveryConfirmation> <DCISType>2</DCISType> </DeliveryConfirmation></PackageServiceOptions> </Package> </Shipment>

FinallyInSeattle

Found my answer.  The XML that comes back as the result splits out the transportation charges from the "ServiceOptionsCharges".  I just needed to use the "TotalCharges" element instead of "TransportationCharges".

sshhll

would you help me how did you mod the code in the ups?
I having the same issue with weight over 70 lbs,, the service is off too.

Thanks,
Sam