close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

UPS "negotiated" rate vs published rate

Thread began 7/06/2009 4:48 pm by grantr281040 | Last modified 7/29/2009 11:05 am by grantr281040 | 13177 views | 4 replies |

grantr281040

UPS "negotiated" rate vs published rate

Hi there!

I went through the UPS shipping wizard in ecart and set everything up and it works great except.... it returns the "published" rate instead of my account's "negotiated" discount rate. Because I want to pass my savings onto my clients, I want to return the negotiated rate.

I talked to UPS and they said...

please make sure the following elements are in your XML Rate Request:

1. Your UPS shipper number must be listed under the Shipper canister.
2. The ShipTo canister must contain the State/Providence code.
3. The ShipFrom canister must contain the State/Providence code.
4. The NegotiatedRatesIndicator element must be in the RateInformation canister.

Items 1 2 & 3 appear to be addressed in the wizard. However, I'm not sure how or where to incorporate #4.

Anybody ever run accross this one?

Thanks,

Grant
Grant

Sign in to reply to this post

Ray BorduinWebAssist

It looks like you could update WA_eCart_UPS_PHP.php

and update the code adding a line before:

$UPS_XML .= "</Shipment></RatingServiceSelectionRequest>";

and make it:

$UPS_XML .= "<RateInformation><NegotiatedRatesIndicator/></RateInformation>";
$UPS_XML .= "</Shipment></RatingServiceSelectionRequest>";

Sign in to reply to this post
Did this help? Tips are appreciated...

grantr281040

Thanks Ray.. It is now also returning the "negatiated rate" but my cart still displays the "published rate"

How do I get my cart to display the negotiated rate and integrate that with my cart totals?

Thanks!

Grant

<p class="eC_SmallPrint"><?xml version="1.0"?><AccessRequest xml:lang="en-US"><AccessLicenseNumber>XXXXXXXXXX</AccessLicenseNumber><UserId>XXXXXXXXXX</UserId><Password>XXXXXXXXXX</Password></AccessRequest><?xml version="1.0"?><RatingServiceSelectionRequest xml:lang="en-US"><Request><TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference><RequestAction>Rate</RequestAction><RequestOption>rate</RequestOption></Request><PickupType><Code>01</Code></PickupType><Shipment><Shipper><ShipperNumber>XXXXXX</ShipperNumber><Address><City>XX</City><StateProvinceCode>CA</StateProvinceCode><PostalCode>XXXXX</PostalCode><CountryCode>US</CountryCode></Address></Shipper><ShipTo><Address><StateProvinceCode>XX</StateProvinceCode><PostalCode>XXXXX</PostalCode><CountryCode>US</CountryCode></Address></ShipTo><Service><Code>01</Code></Service><Package><PackagingType><Code>02</Code></PackagingType><PackageWeight><Weight>0.9</Weight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement></PackageWeight></Package><RateInformation><NegotiatedRatesIndicator/></RateInformation></Shipment></RatingServiceSelectionRequest></p>
<p class="eC_SmallPrint">&nbsp;</p>
<p class="eC_SmallPrint"><?xml version="1.0"?>
<RatingServiceSelectionResponse><Response><TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference><ResponseStatusCode>1</ResponseStatusCode><ResponseStatusDescription>Success</ResponseStatusDescription></Response><RatedShipment><Service><Code>01</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>1.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>18.09</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>18.09</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery><ScheduledDeliveryTime>10:30 A.M.</ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>18.09</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>18.09</MonetaryValue></TotalCharges><Weight>0.9</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>1.0</Weight></BillingWeight></RatedPackage><NegotiatedRates><NetSummaryCharges><GrandTotal><CurrencyCode>USD</CurrencyCode><MonetaryValue>13.74</MonetaryValue></GrandTotal></NetSummaryCharges></NegotiatedRates></RatedShipment></RatingServiceSelectionResponse></p>
</div>

Sign in to reply to this post

Ray BorduinWebAssist

In the UPS include file, update the line:

$_SESSION[$UPS_eCart->CartName . "_UPS" . "_Quote"] = $WA_UPS_params["RATINGSERVICESELECTIONRESPONSE"]["RATEDSHIPMENT"]["TOTALCHARGES"]["MONETARYVALUE"];

to

$_SESSION[$UPS_eCart->CartName . "_UPS" . "_Quote"] = $WA_UPS_params["RATINGSERVICESELECTIONRESPONSE"]["RATEDSHIPMENT"]["NEGOTIATEDRATES"]["NETSUMMARYCHARGES"]["GRANDTOTAL"]["MONETARYVALUE"];

Sign in to reply to this post
Did this help? Tips are appreciated...

grantr281040

Thanks again Ray....I couldn't do it without your help.

YOU ROCK!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...