3 replies [Last post]
jfletch's picture
Offline
Joined: 11/25/2007
Juice: 3
Was this information Helpful?

Here is the XML debug output from integrating the UPS module:

<Package><PackagingType><Code></Code></PackagingType><PackageWeight><UnitOfMeasurement><Code>LBS</Code><Description>Pounds</Description></UnitOfMeasurement><Weight>5.0</Weight></PackageWeight><PackageServiceOptions><InsuredValue><CurrencyCode>USD</CurrencyCode><MonetaryValue>215</MonetaryValue></InsuredValue></PackageServiceOptions></Package></Shipment>
</RatingServiceSelectionRequest>

For the life of me, I can't understand how to get a PackagingType code generated. I hope I am missing something simple. I appreciate any help.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Not getting a PackagingType generated with UPS module

Check that the pkg_type column is set in the uc_ups_products table and the product edit page. If you are using the "All in one package" option in the UPS settings, the package type should be set to "02" regardless of the individual products' package types.

nevmoor's picture
Offline
Joined: 08/17/2007
Juice: 29
Same issue

I have been having INCONSISTENT results from UPS. I have been checking the XML generated. Sometimes the package code does generate eg:


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

and sometimes not eg:


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

.

I checked the tables as suggested on this post and 2 & 24 are set in the tables. It is weird because some of my products work fine all the time, others some of the time, others never. When I combine products in the cart I get different results. I know I have set something incorrectly.
All of my products are imported. Once I got things set up I deleted all the test products I manually created. I am using node_import for csv files to add products so I can just edit the file to have any needed details.
Here is a csv sample:

Item #,Product name,image, list price , cost , sell Price ,UPC Code,length,width,height,Item Weight,shippable,Age Rating,product category,product description
29,Pattern Blocks,0029.jpg,$14.99 ,$7.49 ,$14.99 ,772900294,13.1,8.9,1.9,2.7,1,3 yrs +,Classic Toys,"Incredible value and superior craftsmanship make this item a top seller and childhood favorite. Brightly colored, smooth-sanded pieces help build early shape, color and size differentiation skills.  Ages 3+ 13” x 9” x 2”  130 pcs"
30,Farm Fuzzy Puzzle,0030.jpg,$9.99 ,$4.99 ,$9.99 ,772000307,12,9.2,0.5,0.8,1,1 yr +,Classic Favorites - Other,Four tactile pieces help develop sensory awareness and matching skills.  Raised pieces are easy to remove and have matching pieces underneath. It’s a perfect first puzzle! Quality wood construction will last a lifetime. 12”x 9”. Ages 1+.

I have used both "all in one" and "each in own" as packaging options.

So basically, what triggers the


<Package><PackagingType><Code></Code></PackagingType>

BTW
I have the UPS XML documents. I am wondering if using the "shop" option would be better (shop is supposed to quote rates on whatever valid shipping options are available) I don't see this as a choice in the current UPS module. Anyone using this?

nevmoor's picture
Offline
Joined: 08/17/2007
Juice: 29
For got the debug XML

Here is the debug info

FAILED

<Package><PackagingType><Code>02</Code></PackagingType><Dimensions><UnitOfMeasurement><Code>IN</Code></UnitOfMeasurement><Length>13.10</Length><Width>8.90</Width><Height>1.90</Height></Dimensions><PackageWeight><UnitOfMeasurement><Code>LBS</Code><Description>Pounds</Description></UnitOfMeasurement><Weight>2.7</Weight></PackageWeight><PackageServiceOptions><InsuredValue><CurrencyCode>USD</CurrencyCode><MonetaryValue>14.99</MonetaryValue></InsuredValue></PackageServiceOptions></Package></Shipment>
</RatingServiceSelectionRequest>

<?xml version="1.0" ?>
<RatingServiceSelectionResponse><Response><TransactionReference><CustomerContext>Complex Rate Request</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference><ResponseStatusCode>0</ResponseStatusCode><ResponseStatusDescription>Failure</ResponseStatusDescription><Error><ErrorSeverity>Hard</ErrorSeverity><ErrorCode>111100</ErrorCode><ErrorDescription>The requested service is invalid from the selected origin.</ErrorDescription></Error></Response></RatingServiceSelectionResponse>

SUCCEEDED

<Package><PackagingType><Code>02</Code></PackagingType><Dimensions><UnitOfMeasurement><Code>IN</Code></UnitOfMeasurement><Length>13.10</Length><Width>8.90</Width><Height>1.90</Height></Dimensions><PackageWeight><UnitOfMeasurement><Code>LBS</Code><Description>Pounds</Description></UnitOfMeasurement><Weight>2.7</Weight></PackageWeight><PackageServiceOptions><InsuredValue><CurrencyCode>USD</CurrencyCode><MonetaryValue>14.99</MonetaryValue></InsuredValue></PackageServiceOptions></Package></Shipment>
</RatingServiceSelectionRequest>

<?xml version="1.0" ?>
<RatingServiceSelectionResponse><Response><TransactionReference><CustomerContext>Complex Rate Request</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>3.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>9.33</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>9.33</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery/><ScheduledDeliveryTime/><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>9.33</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>9.33</MonetaryValue></TotalCharges><Weight>2.7</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>3.0</Weight></BillingWeight></RatedPackage></RatedShipment></RatingServiceSelectionResponse>