VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Shipping VM 1.1 => UPS VM 1 => Topic started by: mathechecker on March 31, 2011, 09:34:27 AM

Title: UPS shipping rates much too low
Post by: mathechecker on March 31, 2011, 09:34:27 AM
Hello,
I'm using Joomla! 1.5.22 / Virtuemart 1.1.7a / UPS1.0

My problem is, that all submitted shipping rates are much too low.

Example:
From 84091 to 84036 (both Germany)
commercial customer
Packing 0.7m / 0.3m / 0.3m / 20kg
UPS Standard
Fuel SurCharge 8%
add 19% vat

Submitted rate from UPS1.0               : 10.86€
Calculated by wwwapps.ups.com/ctc/request: 15.27€ (correct, confirmed by phone)

Can anybody help me?
Many thanx in advance!


[attachment cleanup by admin]
Title: Re: UPS shipping rates much too low
Post by: lowmips on March 31, 2011, 15:55:42 PM
The original module has no way to pass package dimensions.  This is probably why your rates are too low.  What does the XML request/reply look like (do not post your UPS credentials if you post the XML here)?

My UPSv2 module has some dimension declaration support.
http://forum.virtuemart.net/index.php?topic=47142.0
Title: Re: UPS shipping rates much too low
Post by: mathechecker on March 31, 2011, 18:35:31 PM
Hello Reggie!
Thank you very much for your reply.
I attached both debug informations: XMLrequest and XMLresult

If your version can eliminate this error -> I will donate today!

Best regard

[attachment cleanup by admin]
Title: Re: UPS shipping rates much too low
Post by: mathechecker on April 01, 2011, 07:40:25 AM
Hi Reggie!
I tried at wwwapps.ups.com to get a rate without input of the package dimensions -> same price like with dimensions (15,27€)
It seams, that for low weights the dimensions are irrelevant.

Best regards

[attachment cleanup by admin]
Title: Re: UPS shipping rates much too low
Post by: lowmips on April 01, 2011, 14:14:14 PM
One thing that really sticks out in your XML request is the weight..it shows only 2 kgs, but you say the package is 20kgs!
Title: Re: UPS shipping rates much too low
Post by: mathechecker on April 01, 2011, 15:42:03 PM
Hello Reggie!

I made a debug again:
I found the correct shipping rates in the debug informations, but they are not finally displayed.

15.27€ / 1.4141 (today's exchange rate $ -> €)= 10.798 !!!!
How am I able to avoid this calculation, because the submitted rates are already €, but the module "thinks" that it has to convert?


I already checked convertECB.php:
Used link:
var $document_address = 'http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml';

New link:
http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml

Can this be the reason?
Best regards,

[attachment cleanup by admin]
Title: Re: UPS shipping rates much too low
Post by: lowmips on April 01, 2011, 16:20:35 PM
Found the issue..the ups v1 module assumes that the currency being returned is in USD...go to ups.php, line 295:
$convert = true;

Change it to:
$convert = false;

This modification is specific to your configuration, so if anyone else tries this, be careful!
Title: Re: UPS shipping rates much too low
Post by: mathechecker on April 01, 2011, 17:36:46 PM
Hi Reggie
It works, thank you very much for your support !

Best regards,