Jan Zonjee Posted April 11, 2009 Posted April 11, 2009 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?). Quote
jrsteensen Posted April 11, 2009 Posted April 11, 2009 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. Quote
Jan Zonjee Posted April 11, 2009 Posted April 11, 2009 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 withproduct 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. Quote
jrsteensen Posted April 11, 2009 Posted April 11, 2009 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. Quote
Jan Zonjee Posted April 11, 2009 Posted April 11, 2009 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. Quote
♥kymation Posted April 11, 2009 Posted April 11, 2009 Is your Admin -> Configuration -> Shipping/Packaging -> Enter the Maximum Package Weight you will ship set to more than 65 pounds? Regards Jim Quote See my profile for a list of my addons and ways to get support.
jrsteensen Posted April 11, 2009 Posted April 11, 2009 Ah! That was it. I apologize. I was merely confused. I appreciate the help Jan and kymation. Quote
Jan Zonjee Posted April 11, 2009 Posted April 11, 2009 I was merely confused. I didn't think of what Jim/kymation mentioned. That would have been a show stopper too. Excusez moi! Quote
onelow99s10 Posted April 12, 2009 Posted April 12, 2009 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 Quote
beanzy Posted April 12, 2009 Posted April 12, 2009 Could someone please let me know which version of UPS Shipping Module contrib I can use with OSC 2.2RC2A? Quote
Jan Zonjee Posted April 12, 2009 Posted April 12, 2009 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> Quote
onelow99s10 Posted April 13, 2009 Posted April 13, 2009 (edited) 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 April 14, 2009 by onelow99s10 Quote
onelow99s10 Posted April 15, 2009 Posted April 15, 2009 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. Quote
Jan Zonjee Posted April 15, 2009 Posted April 15, 2009 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. Quote
onelow99s10 Posted April 16, 2009 Posted April 16, 2009 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. Quote
Jan Zonjee Posted April 16, 2009 Posted April 16, 2009 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. Quote
hb_cmcl Posted April 20, 2009 Posted April 20, 2009 Has anyone had any success integrating this into osCommerce version 3.0a5? Any problems encountered? (I considered posting this in the v3.x forums but there doesn't seem to be much activity over there yet...) Quote
onelow99s10 Posted April 23, 2009 Posted April 23, 2009 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. Quote
[email protected] Posted April 23, 2009 Posted April 23, 2009 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 Quote
bagtodrag Posted April 27, 2009 Posted April 27, 2009 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] Quote
p0ng Posted April 29, 2009 Posted April 29, 2009 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? Quote
onelow99s10 Posted May 2, 2009 Posted May 2, 2009 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, Quote
natashome Posted June 11, 2009 Posted June 11, 2009 (edited) 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.. also i get this error on the error log file TimeInTransit 270005: Invalid Destination Postal Code in TimeInTransit 5 thanks Edited June 11, 2009 by natashome Quote
Jan Zonjee Posted June 11, 2009 Posted June 11, 2009 i have this module installedhttp://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 fileTimeInTransit 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. Quote
natashome Posted June 11, 2009 Posted June 11, 2009 hey Jan i don't want to offend you...just wanted to know if there are people who get the right quotes..so that i know it doesn't have anything to do with the module... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.