Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New UPS XML Shipping Module available


Recommended Posts

Can someone help me with the above issue? I have enabled logging and have read all of the code and do not understand while it is coming up with a error code.

 

The error log file is basically empty

2009-04-04 19:30:26 TimeInTransit : 3

2009-04-04 19:36:19 TimeInTransit : 3

2009-04-04 19:36:41 TimeInTransit : 3

In your previous post you showed you use exec() to get quotes. Do you really need that?

 

You enabled logging but don't you see a request for the TimeInTransit service (default behaviour is that this shipping module does two request, one for timeintransit and one for rates. So for each checkout you should see two requests and two replies.

 

This is a very strange error report because when errors are loggged it logs the error message from UPS and the customer_id (this could be the 3?).

Link to comment
Share on other sites

OK. Im setting up a shop to ship relatively large packages with UPS.

 

The package is as such:

 

65 pounds, 48x15x10 inches.

 

However, whenever I quote it, it tells me (2 pkg(s) x 36 lbs total), when it should be (1 pkg(s) x 65 lbs total).

 

What gives? This screws up my shipping quote to my customers.

Link to comment
Share on other sites

What gives? This screws up my shipping quote to my customers.

From the readme.txt:

If you elect to install dimensional support, the UPSXML Module will use an intelligent packing algorithm to load boxes with

product and return quotes based on the size and dimensions of those boxes. This contrasts with osCommerce's default

installation of quotes based on weight only, multiplied by the number of boxes. There is no guarantee that this simple packing

algoritm will work for all situations, nor return a better rate, but it should. More accurate quoting means less loss due to

customers being underquoted for shipping.

Link to comment
Share on other sites

Sir, my problem is that it is automatically breaking it down into two packages when it should be only showing one package. Perhaps I am not understanding what you mean.

 

Part of the product is a 1/2 inch sheet of MDF that is 48 inches long and 15 inches wide, so it really can't break it down and still be accurate.

Link to comment
Share on other sites

Sir, my problem is that it is automatically breaking it down into two packages when it should be only showing one package. Perhaps I am not understanding what you mean.

 

Part of the product is a 1/2 inch sheet of MDF that is 48 inches long and 15 inches wide, so it really can't break it down and still be accurate.

The problem is you don't read slowly and accurately but jump to conclusions and then scream.

 

As said above the standard behaviour of osCommerce is to take the total weight of the shipping, divide it by box weight (a setting in the admin of the maximum you will ship in a box) and then figures out how much boxes you will send. It doesn't look at the items. You can ship an elephant with osCommerce: in a lot of boxes :)

 

If you add in the dimensional support of UPSXML it will look at items and dimensions. But you will need to install that part and to enable it in the admin when you do.

Link to comment
Share on other sites

Is your Admin -> Configuration -> Shipping/Packaging -> Enter the Maximum Package Weight you will ship set to more than 65 pounds?

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Ok let me try this again. I had shut off time in transit to try and figure out what was wrong since there is no error code in the xml response.

here is both files

------------------------------------------
DATE AND TIME: 2009-04-11 17:37:08
UPS URL: https://www.ups.com:443/ups.app/xml/TimeInTransit
UPS REQUEST: <?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
  <AccessLicenseNumber>**************8</AccessLicenseNumber>
  <UserId>**********</UserId>
  <Password>***********</Password>
</AccessRequest>
<?xml version="1.0"?>
<TimeInTransitRequest xml:lang="en-US">
  <Request>
   <TransactionReference>
	   <CustomerContext>Time in Transit</CustomerContext>
	   <XpciVersion>1.0002</XpciVersion>
   </TransactionReference>
   <RequestAction>TimeInTransit</RequestAction>
  </Request>
  <TransitFrom>
   <AddressArtifactFormat>
	   <PoliticalDivision2>taylor</PoliticalDivision2>
	   <PoliticalDivision1>MI</PoliticalDivision1>
	   <CountryCode>US</CountryCode>
	   <PostcodePrimaryLow>48180</PostcodePrimaryLow>
   </AddressArtifactFormat>
  </TransitFrom>
  <TransitTo>
   <AddressArtifactFormat>
	   <PoliticalDivision2>deptford</PoliticalDivision2>
	   <PoliticalDivision1>NJ</PoliticalDivision1>
	   <CountryCode>US</CountryCode>
	   <PostcodePrimaryLow>08096</PostcodePrimaryLow>
	   <PostcodePrimaryHigh>08096</PostcodePrimaryHigh>
   </AddressArtifactFormat>
  </TransitTo>
  <ShipmentWeight>
   <UnitOfMeasurement>
	   <Code>LBS</Code>
   </UnitOfMeasurement>
   <Weight>10</Weight>
  </ShipmentWeight>
  <InvoiceLineTotal>
   <CurrencyCode>USD</CurrencyCode>
   <MonetaryValue>180</MonetaryValue>
  </InvoiceLineTotal>
  <PickupDate>20090413</PickupDate>
</TimeInTransitRequest>

UPS RESPONSE: <?xml version="1.0"?><TimeInTransitResponse><Response><TransactionReference><CustomerContext>Time in Transit</CustomerContext><XpciVersion>1.0002</XpciVersion></TransactionReference><ResponseStatusCode>1</ResponseStatusCode><ResponseStatusDescription>Success</ResponseStatusDescription></Response><TransitResponse><PickupDate>2009-04-13</PickupDate><TransitFrom><AddressArtifactFormat><PoliticalDivision2>TAYLOR</PoliticalDivision2><PoliticalDivision1>MI</PoliticalDivision1><Country>UNITED STATES</Country><CountryCode>US</CountryCode><PostcodePrimaryLow>48180</PostcodePrimaryLow></AddressArtifactFormat></TransitFrom><TransitTo><AddressArtifactFormat><PoliticalDivision2>DEPTFORD</PoliticalDivision2><PoliticalDivision1>NJ</PoliticalDivision1><Country>UNITED STATES</Country><CountryCode>US</CountryCode><PostcodePrimaryLow>08096</PostcodePrimaryLow></AddressArtifactFormat></TransitTo><ShipmentWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></ShipmentWeight><InvoiceLineTotal><CurrencyCode>USD</CurrencyCode><MonetaryValue>180.00</MonetaryValue></InvoiceLineTotal><Disclaimer>Services listed as guaranteed are backed by a money-back guarantee for transportation charges only. UPS guarantees the day of delivery for every ground package you ship to any address within all 50 states and Puerto Rico. See Terms and Conditions in the Service Guide for details.</Disclaimer><ServiceSummary><Service><Code>1DM</Code><Description>UPS Next Day Air Early A.M.</Description></Service><Guaranteed><Code>Y</Code></Guaranteed><EstimatedArrival><BusinessTransitDays>1</BusinessTransitDays><Time>08:00:00</Time><PickupDate>2009-04-13</PickupDate><Date>2009-04-14</Date><DayOfWeek>TUE</DayOfWeek></EstimatedArrival></ServiceSummary><ServiceSummary><Service><Code>1DA</Code><Description>UPS Next Day Air</Description></Service><Guaranteed><Code>Y</Code></Guaranteed><EstimatedArrival><BusinessTransitDays>1</BusinessTransitDays><Time>10:30:00</Time><PickupDate>2009-04-13</PickupDate><Date>2009-04-14</Date><DayOfWeek>TUE</DayOfWeek></EstimatedArrival></ServiceSummary><ServiceSummary><Service><Code>1DP</Code><Description>UPS Next Day Air Saver</Description></Service><Guaranteed><Code>Y</Code></Guaranteed><EstimatedArrival><BusinessTransitDays>1</BusinessTransitDays><Time>15:00:00</Time><PickupDate>2009-04-13</PickupDate><Date>2009-04-14</Date><DayOfWeek>TUE</DayOfWeek></EstimatedArrival></ServiceSummary><ServiceSummary><Service><Code>2DM</Code><Description>UPS 2nd Day Air A.M.</Description></Service><Guaranteed><Code>Y</Code></Guaranteed><EstimatedArrival><BusinessTransitDays>2</BusinessTransitDays><Time>10:30:00</Time><PickupDate>2009-04-13</PickupDate><Date>2009-04-15</Date><DayOfWeek>WED</DayOfWeek></EstimatedArrival></ServiceSummary><ServiceSummary><Service><Code>2DA</Code><Description>UPS 2nd Day Air</Description></Service><Guaranteed><Code>Y</Code></Guaranteed><EstimatedArrival><BusinessTransitDays>2</BusinessTransitDays><Time>23:00:00</Time><PickupDate>2009-04-13</PickupDate><Date>2009-04-15</Date><DayOfWeek>WED</DayOfWeek></EstimatedArrival></ServiceSummary><ServiceSummary><Service><Code>GND</Code><Description>UPS Ground</Description></Service><Guaranteed><Code>Y</Code></Guaranteed><EstimatedArrival><BusinessTransitDays>2</BusinessTransitDays><Time>23:00:00</Time><PickupDate>2009-04-13</PickupDate><Date>2009-04-15</Date><DayOfWeek>WED</DayOfWeek></EstimatedArrival></ServiceSummary><MaximumListSize>35</MaximumListSize></TransitResponse></TimeInTransitResponse>
------------------------------------------
Time in Transit: 0
------------------------------------------
DATE AND TIME: 2009-04-11 17:37:09
UPS URL: https://www.ups.com:443/ups.app/xml/Rate
UPS REQUEST: <?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
  <AccessLicenseNumber>**********</AccessLicenseNumber>
  <UserId>***********</UserId>
  <Password>********</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>shop</RequestOption>
  </Request>
  <PickupType>
   <Code>01</Code>
  </PickupType>
  <Shipment>
   <Shipper>
	   <Address>
		   <City>taylor</City>
		   <StateProvinceCode>MI</StateProvinceCode>
		   <CountryCode>US</CountryCode>
		   <PostalCode>48180</PostalCode>
	   </Address>
   </Shipper>
   <ShipTo>
	   <Address>
		   <City>deptford</City>
		   <StateProvinceCode>NJ</StateProvinceCode>
		   <CountryCode>US</CountryCode>
		   <PostalCode>08096</PostalCode>
	   </Address>
   </ShipTo>
   <Package>
	   <PackagingType>
		   <Code>02</Code>
	   </PackagingType>
	   <PackageWeight>
		   <UnitOfMeasurement>
			   <Code>LBS</Code>
		   </UnitOfMeasurement>
		   <Weight>10</Weight>
	   </PackageWeight>
	   <PackageServiceOptions>
		   <InsuredValue>
			   <CurrencyCode>USD</CurrencyCode>
			   <MonetaryValue>180.00</MonetaryValue>
		   </InsuredValue>
	   </PackageServiceOptions>
   </Package>
  </Shipment>
  <CustomerClassification>
   <Code>01</Code>
  </CustomerClassification>
</RatingServiceSelectionRequest>

UPS 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>10.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.04</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>8.99</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery></GuaranteedDaysToDelivery><ScheduledDeliveryTime></ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.04</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>8.99</MonetaryValue></TotalCharges><Weight>10.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>12</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>13.80</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>15.75</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>3</GuaranteedDaysToDelivery><ScheduledDeliveryTime></ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>13.80</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>15.75</MonetaryValue></TotalCharges><Weight>10.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>59</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>22.20</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>24.15</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>2</GuaranteedDaysToDelivery><ScheduledDeliveryTime>10:30 A.M.</ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>22.20</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>24.15</MonetaryValue></TotalCharges><Weight>10.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>02</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>19.10</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>21.05</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>2</GuaranteedDaysToDelivery><ScheduledDeliveryTime></ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>19.10</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>21.05</MonetaryValue></TotalCharges><Weight>10.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>13</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>53.45</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>55.40</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery><ScheduledDeliveryTime>3:00 P.M.</ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>53.45</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>55.40</MonetaryValue></TotalCharges><Weight>10.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>14</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>89.70</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>91.65</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery><ScheduledDeliveryTime>8:00 A.M.</ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>89.70</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>91.65</MonetaryValue></TotalCharges><Weight>10.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>01</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>58.70</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>60.65</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery><ScheduledDeliveryTime>10:30 A.M.</ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>58.70</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>1.95</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>60.65</MonetaryValue></TotalCharges><Weight>10.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight></RatedPackage></RatedShipment></RatingServiceSelectionResponse>

2009-04-11 17:37:09	TimeInTransit	: 	3

Link to comment
Share on other sites

Ok let me try this again. I had shut off time in transit to try and figure out what was wrong since there is no error code in the xml response.

This had me puzzled for a while. I copied the xml responses to files and used both of them to read them instead of querying UPS. It worked fine.

 

I'm guessing here but I think you use an older version (why?) that still looks for the XpciVersion in the response. That went from 1.0001 to 1.0002 and since I did not see any difference between the two I just removed looking for that.

However, if the code looks for it than there is an error of course, but no error message. Then it will only write the customer_id to the log file. Therefore the puzzling

2009-04-11 17:37:09	TimeInTransit	:	 3

I could force that by changing the ResponseStatusCode to zero in the saved xml file:

<ResponseStatusCode>0</ResponseStatusCode>

Link to comment
Share on other sites

This had me puzzled for a while. I copied the xml responses to files and used both of them to read them instead of querying UPS. It worked fine.

 

I'm guessing here but I think you use an older version (why?) that still looks for the XpciVersion in the response. That went from 1.0001 to 1.0002 and since I did not see any difference between the two I just removed looking for that.

However, if the code looks for it than there is an error of course, but no error message. Then it will only write the customer_id to the log file. Therefore the puzzling

2009-04-11 17:37:09	TimeInTransit	:	 3

I could force that by changing the ResponseStatusCode to zero in the saved xml file:

<ResponseStatusCode>0</ResponseStatusCode>

 

Using 1.3.5 and I know how to write php and xml. I still cannot see why this error is coming up. I have removed the code that should be causing the issue but still does not work. It checks the xpciversion once for the rates, the sceond one is commented out which is for the time in transit.

 

I redownloaded the upsxml.php and uploaded it to the server, still no difference.

I'm also puzzled by this section of code, doesn't look right to me.

// Get response code: 1 = SUCCESS, 0 = FAIL
	$responseStatusCode = $doc['RatingServiceSelectionResponse']['Response']['ResponseStatusCode'];
	if ($responseStatusCode != '1') {
		$errorMsg = $doc['RatingServiceSelectionResponse']['Response']['Error']['ErrorCode'];
		$errorMsg .= ": ";
		$errorMsg .= $doc['RatingServiceSelectionResponse']['Response']['Error']['ErrorDescription'];

Edited by onelow99s10
Link to comment
Share on other sites

I have also uncommented out the line in the upsxml file to show results from the txt file and still get :

This module supports only xpci version 1.0001 of the UPS Rates Interface.

What is not clear to me is if you get quotes or not. I understand you don't get estimated delivery times but do you also see no quotes?

 

Other question: do you use PHP4 or PHP5. If you use PHP4 I could imagine the XML class is not working because it uses passing by reference and that perhaps triggers a warning by the server so that the whole thing doesn't work anymore.

Link to comment
Share on other sites

What is not clear to me is if you get quotes or not. I understand you don't get estimated delivery times but do you also see no quotes?

 

Other question: do you use PHP4 or PHP5. If you use PHP4 I could imagine the XML class is not working because it uses passing by reference and that perhaps triggers a warning by the server so that the whole thing doesn't work anymore.

 

PHP Version: 4.4.7 (Zend: 1.3.0)

osCommerce Online Merchant v2.2 RC2a

 

Pickup Rate

Customer Pickup $0.00

 

United Parcel Service

This module supports only xpci version 1.0001 of the UPS Rates Interface. Please contact the webmaster for additional assistance.

If you prefer to use UPS as your shipping method, please contact Phone Care Inc. via Email.

 

United States Postal Service (1 x 8lbs)

Express Mail $48.40

 

Thats all you get from ups. no quotes, nothing.

Link to comment
Share on other sites

United Parcel Service

This module supports only xpci version 1.0001 of the UPS Rates Interface.

You get quotes from UPS but they don't show for some reason. It looks like something going wrong parsing the xml response from UPS but why?

 

You could try adding some lines to upsxml.php to print the array it is supposed to make from the XML response. I think this should do that:

	function _parseResult($xmlResult) {
	// Parse XML message returned by the UPS post server.
	$doc = XML_unserialize ($xmlResult);

echo '<pre>';
print_r($doc);

Perhaps it sheds some light on the problem.

Link to comment
Share on other sites

You get quotes from UPS but they don't show for some reason. It looks like something going wrong parsing the xml response from UPS but why?

 

You could try adding some lines to upsxml.php to print the array it is supposed to make from the XML response. I think this should do that:

	function _parseResult($xmlResult) {
	// Parse XML message returned by the UPS post server.
	$doc = XML_unserialize ($xmlResult);

echo '<pre>';
print_r($doc);

Perhaps it sheds some light on the problem.

 

I added the lines above, and i got nothing different except white space at the top of the page. looked through the source text and did not see anything extra.

Link to comment
Share on other sites

Everyone:

 

I held off from posting for as long as I could, while spending many hours researching my issue.

 

The UPS module, I'm using version 1.3.5, with all of the appropriate bug fixes that I was able to easily find.

 

However... in the Admin section, for the Shipping Modules, UPS Module, I've got all of our shipping information in there, however, when I go for quotes I don't get our negotiated rates properly.

 

I tried troubleshooting by using the UPS website, but I don't get the correct quotes from there either. I only get the accurate rates when I use UPS Connect.

 

Also during the checkout process, I want to make sure that I'm going to be billed at the right rate, and if I can't get the correct negotiated rate (how can I be sure of that?).

 

I don't mind quoting out the regular rate to the customer but I'd rather quote using our negotiated rate, and then have a handling fee, included on every order.

 

Any help / guidance is much appreciated.

 

Sincerely,

 

Kevin

Link to comment
Share on other sites

I'm new to this module and I am getting errors.

 

When I try to order a product then hit check out I get this...

 

Parse error: syntax error, unexpected '}' in /home/overshop/public_html/catalog/checkout_shipping.php on line 156

 

 

And also in the ADMIN when I got to edit a product I get this error...

 

1054 - Unknown column 'products_length' in 'field list'

select pd.products_name, pd.products_description, pd.products_url, p.products_id, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, products_length, products_width, products_height, products_ready_to_ship, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id from products p, products_description pd where p.products_id = '32' and p.products_id = pd.products_id and pd.language_id = '1'

[TEP STOP]

Link to comment
Share on other sites

I am having some trouble trying to get the Negociated Rates to work. I have set it to true and entered in my UPS account number (have tried 2 different accounts numbers which both have a negotiated rates contract) and the display only shows me the published UPS rates.

 

I know that I have negociated rates because I get the 'inventives' on my UPS invoice.

 

Anyone have any ideas?

Link to comment
Share on other sites

I'm new to this module and I am getting errors.

 

When I try to order a product then hit check out I get this...

 

Parse error: syntax error, unexpected '}' in /home/overshop/public_html/catalog/checkout_shipping.php on line 156

 

 

And also in the ADMIN when I got to edit a product I get this error...

 

1054 - Unknown column 'products_length' in 'field list'

select pd.products_name, pd.products_description, pd.products_url, p.products_id, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, products_length, products_width, products_height, products_ready_to_ship, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id from products p, products_description pd where p.products_id = '32' and p.products_id = pd.products_id and pd.language_id = '1'

[TEP STOP]

First there is a unexpected "}" in /catalog/checkout_shipping.php on line 156 fix it

 

second products_length, products_width, products_height, products_ready_to_ship, sound be p.products_length, p.products_width, p.products_height, p.products_ready_to_ship,

Link to comment
Share on other sites

  • 1 month later...
i have this module installed

http://addons.oscommerce.com/info/1323

and when i go to ups website and calculate the cost it gives me other rates..

You already posted that yes and we have seen plenty of people telling us that. It is not true but it is getting tiring explaining that.

also i get this error on the error log file

TimeInTransit 270005: Invalid Destination Postal Code in TimeInTransit 5

If UPS thinks it is invalid and you know it is valid please take this up with UPS.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...