How to get the XML that is sent to UPS? Getting wrong rates.

The automatic calculation of UPS rates results in erroneous rates. I have requested support from UPS and they need the xml message that cs-cart send UPS. How do I fetch this?

Turn on “Request” logging.

Then get a quote and go look at the log entry. Should be able to cut/paste the request and response.

The log only shows the response. Not the request.

Must be an ultimate change or a V3 change. In V2, it shows the request immediately followed by the response. Must have been a user voice feature request to remove it! :-)

It just displays:

Request: array ( )

Followed by the response.

P-Pharma is absolutely correct that the rates from UPS in CS-Cart are often not correct…



A few things to check:

  • The negotiated rates indicator is 'on'
  • Whether the addresses are residential or not. From my findings, you may not even have this box selected, but if UPS's internal system already knows that an address is residential, it will give you back the higher rate regardless.
  • Make sure your weight/dimension units of measurement are correct. For example, in Canada CS-Cart assumes the metric system but many of us still use the imperial system. If that isn't configured properly, the rate result will always be inaccurate.



    What I did to get the right rates working was I (temporarily) modified the shippings/ups.php script, repeatedly doing a print_r of the request/response array until I got rates that matched the UPS website. You can test this all from the shipping settings screen inside the CS-Cart admin.



    Let me know if you have further questions.



    Cheers,

Then that would be a bug. Showing 'array()' means that it tried to print a string but found the data to be an array. Another gift from something that used to work just fine!

Yes, this seems to be a bug. The log shows:



Requests (http/https request) URL: https://wwwcie.ups.c…ps.app/xml/Rate

Request: array ( )



I have filed this bug here: http://forum.cs-cart.com/tracker/issue-3767-ups-shipping-calculation-shows-empty-array/

[quote name='P-Pharma' timestamp='1359644062' post='154122']

The automatic calculation of UPS rates results in erroneous rates. I have requested support from UPS and they need the xml message that cs-cart send UPS. How do I fetch this?

[/quote]

I do not have this problem in v3

The calculated rates my customers see in the shopping cart match the rates I get at ups.com

Hi

I am also getting the wrong rates (too high). Magpie Don - do you have a negotiated rates at UPS as I do. If you don't you might be bang on but I have found CS-Caet V3 isn't seeing the negotiated rates data, so I get full prices back!

As I recall, UPS does not return your “Negotiated Contract Rates” by default for realtime calculation, you need to specifically request this through UPS tech support.

That's true, Negotiated Rates are another story. I ship so infrequently with UPS that I don't qualify for a discounted rate. I used to, but not anymore, and I've never tried to get the API to fetch a negotiated rate.

I think a lot of online retailers just take the discount as a profit.

[quote][color=#282828][font=arial, verdana, tahoma, sans-serif]I think a lot of online retailers just take the discount as a profit.[/font][/color][/quote]



And some of us only take some of the discount as profit & pass the remaining savings on to our customers for a competitive edge.



But yes, UPS being the market leader in Parcel deliveries has always been quite hesitant in displaying actual contract discounted rates in realtime, this is why a customer has to specifically request this through UPS tech support versus the actual rates automatically just being sent out.