close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

UPS Shipping Problems

Thread began 10/04/2010 10:16 am by joe369303 | Last modified 10/26/2010 4:31 pm by Jason Byrnes | 2059 views | 16 replies |

joe369303

UPS Shipping Problems

Hello Web Assist:

I setup my E-Cart with UPS Shipping on the basis that my client was shipping everything in one package....Well that changed. I found on the confirm page how to change the ups over to one package per item...but I need to know the values of Package Length, Width, Height for each item that is purchased. Please Help.


Thanks
Joey

Sign in to reply to this post

Jason ByrnesWebAssist

you can either hard code these values so that all packages will be calculated using the same dimensions, or you can add them to the cart on a product by product basis.

in your eCart object, create new columns for height, length and width.

In the Add to cart buttons, set the values for the height length and width, if you are using a recordset for your products, you will need to add theses columns to the DB as well and set the values in the DB.

in the shipping server behavior, you can then click the lightning bolt for the height, length and width, and select the corresponding cart column.

Sign in to reply to this post

joe369303

Problem Solved

Thank You Jason.

This problem is solved!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

rafael.ordaz410005

UPS Shipping Cost Calculation

Jason,

I'm having some problems with the UPS quote it seems the dimensions are not been taking into consideration for the shipping quote. I changed the dimensions from 25,25,26 to 1,1,1 (inches) without any change on the shipping cost.

I have the UPS full response, and full request on my confirm page and checkout success page, but I don't see the dimensions data on this xml data.

Thanks.

Sign in to reply to this post

rafael.ordaz410005

UPS Shipping Cost Calculation - Full Response / Full Request

Username, password, api have been deleted

QUOTE:11.43

FULL REQUEST:BC62CE51XXXXXXXXusernamepasswordRating and Service1.0001Raterate0101182EW0
HoustonTX77045US
San JoseCA95131US
030212.0LBS

FULL RESPONSE: Rating and Service1.00011Success03Your invoice may vary from the displayed reference ratesLBS12.0USD11.43USD0.00USD11.43USD11.43USD0.00USD11.4312.0LBS12.0

Weight:12

Length:1

Width:1

Height:1

Sign in to reply to this post

Jason ByrnesWebAssist

What have you set the packaging type to? the dimensions will only be used if packaging type is set to Your Packaging.

Sign in to reply to this post

rafael.ordaz410005

Originally Said By: Jason Byrnes
  What have you set the packaging type to? the dimensions will only be used if packaging type is set to Your Packaging.  


It's been set to "your packaging". Is there some part on the code where that I can verify the "your packaging" has been selected, I know I have picked this option in shipping server behavior.

Will these dimensions show up on full request / full response xml?

ps: I know this is a little off the discussion but Does Webassist have any solution for calculating shipping box size when there is more than one item in the order?

Sign in to reply to this post

Jason ByrnesWebAssist

use this code for writing the full request and full response:

<?php 
if(!session_id()) session_start();
echo "<p>USPS: <br />";
echo "Full Request: ".(isset($_SESSION["<cartName>_USPS_FullRequest"])?htmlentities($_SESSION["<cartName>_USPS_FullRequest"]):"n/a")."<br />";
echo "Full Response: ".(isset($_SESSION["<cartName>_USPS_FullResponse"])?htmlentities($_SESSION["<cartName>_USPS_FullResponse"]):"n/a")."<br /></p>";
?>




make sure to replace "<cartName>" with the name of your cart object. this will show the xml to help decipher the issue.

Sign in to reply to this post

rafael.ordaz410005

Since I'm working on asp/javascript this is code I'm using to get the xml response and request
FULL REQUEST:<%=Session("MPSCart_UPS_FullRequest")%>
FULL RESPONSE:<%=Session("MPSCart_UPS_FullResponse")%>
*************************************************************
FULL REQUEST:<?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>XXXXXXXXXXXXXXX</AccessLicenseNumber>
<UserId>xxxx</UserId>
<Password>xxxxxx</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>
<CustomerClassification><Code>01</Code>
</CustomerClassification>
<Shipment>
<Shipper>
<ShipperNumber>xxxxxx</ShipperNumber>
<Address>
<City>Houston</City>
<StateProvinceCode>TX</StateProvinceCode>
<PostalCode>77045</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Shipper>

<ShipTo><Address>
<City>San Jose</City>
<StateProvinceCode>CA</StateProvinceCode>
<PostalCode>95131</PostalCode>
<CountryCode>US</CountryCode>
</Address>

</ShipTo>

<Service>
<Code>03</Code>
</Service>

<Package>

<PackagingType>
<Code>02</Code>
</PackagingType>

<PackageWeight>
<Weight>12.0</Weight>
<UnitOfMeasurement>
<Code>LBS</Code></UnitOfMeasurement>
</PackageWeight>

</Package>

</Shipment>
</RatingServiceSelectionRequest>

*************************************************************
FULL RESPONSE:<?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>03</Code></Service>

<RatedShipmentWarning>
Your invoice may vary from the displayed reference rates
</RatedShipmentWarning>

<BillingWeight>
<UnitOfMeasurement>
<Code>LBS</Code>
</UnitOfMeasurement>
<Weight>12.0</Weight>
</BillingWeight>

<TransportationCharges>
<CurrencyCode>USD</CurrencyCode>
<MonetaryValue>11.43</MonetaryValue>
</TransportationCharges>

<ServiceOptionsCharges>
<CurrencyCode>USD</CurrencyCode>
<MonetaryValue>0.00</MonetaryValue>
</ServiceOptionsCharges>

<TotalCharges>
<CurrencyCode>USD</CurrencyCode>
<MonetaryValue>11.43</MonetaryValue>
</TotalCharges>
<GuaranteedDaysToDelivery/><ScheduledDeliveryTime/>

<RatedPackage>
<TransportationCharges>
<CurrencyCode>USD</CurrencyCode>
<MonetaryValue>11.43</MonetaryValue>
</TransportationCharges>

<ServiceOptionsCharges>
<CurrencyCode>USD</CurrencyCode>
<MonetaryValue>0.00</MonetaryValue>
</ServiceOptionsCharges>

<TotalCharges>
<CurrencyCode>USD</CurrencyCode>
<MonetaryValue>11.43</MonetaryValue>
</TotalCharges>

<Weight>12.0</Weight>

<BillingWeight>
<UnitOfMeasurement>
<Code>LBS</Code>
</UnitOfMeasurement>
<Weight>12.0</Weight>
</BillingWeight>

</RatedPackage>

</RatedShipment>
</RatingServiceSelectionResponse>

Sign in to reply to this post
loading

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...