Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

bhaai

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Real Name
    Kim Fisher

bhaai's Achievements

  1. For anybody who's searching for info on these methods, here's what I have concluded (not independently confirmed): The primary rates request returns elements called <GuaranteedDaysToDelivery> and <ScheduledDeliveryTime> The additional Transit Time request by Greg McClellan returns <EstimatedArrival>/<BusinessTransitDays> and <EstimatedArrival>/<Time> With the former, the name ("guaranteed") implies a certain degree of certitude; however, we get no values for UPS Ground (but we do for all the rest). With the latter, the name ("estimated") implies less certitude, but is more realistic. If it's only going to take 1 day to get a package via Ground, this method says so (if the "guaranteed" method returned a value, it would probably be higher than 1, which is less useful). We get values for UPS Ground; however, we occasionally do not get values for 3 Day Select and/or 2nd Day Air. I have concluded that the latter happens when it is not appropriate, i.e. when Ground would get the packages there just as soon. This is a useful way (that did not exist in the HTML UPS module) to screen out methods that are not in the customer's or shipper's interest. Using the latter method, if you want to add the estimated delivery time, you'll need to add $transitTime[$serviceDesc]["time"] = $serviceSummary[$s]->getValueByPath("EstimatedArrival/Time"); to the _transitparseResult function, and then do something with it in the quote() function. I added these lines in place of the line that uses $this->servicesTimeintransit[$type]["date"]: if ($this->servicesTimeintransit[$type]["days"] > 0) { $_type .= ' ('; $_type .= $this->servicesTimeintransit[$type]["days"] . " business day"; if ($this->servicesTimeintransit[$type]["days"] > 1) $_type .= "s"; if ($this->servicesTimeintransit[$type]["time"]) { $_type .= ' by ' . efi_convert_ups_time($this->servicesTimeintransit[$type]["time"]); } $_type .= ')'; } (efi_convert_ups() is just a little function to convert the UPS times to a better format) And if you wanted to get fancy, you could add a marker indicating whether or not the estimated transit time is guaranteed or not, using if ($transitTime[$serviceDesc]["guaranteed"] == 'Y')
  2. Hello, I can't find an answer to this on the boards or in the UPS docs, so here goes: Everything with my installation of UPS XML is working fine, and I think it's a great contribution. The only problem is that the response I get from UPS has a non-null <GuaranteedDaysToDelivery> value for every <Service><Code></Code></Service> except 03 (UPS Ground). Has anybody else run into this problem? Is it just that UPS doesn't guarantee transit days for UPS Ground? I'm using 'test' rather than 'production' mode. Note that _upsGetTimeServices() does get an estimated delivery date back. Here is a snippet from my upsxml.log: <RatedShipment> <Service><Code>03</Code></Service> <BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>2.0</Weight></BillingWeight> <TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>5.44</MonetaryValue></TransportationCharges> <ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges> <TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>5.44</MonetaryValue></TotalCharges> <GuaranteedDaysToDelivery></GuaranteedDaysToDelivery> <ScheduledDeliveryTime></ScheduledDeliveryTime> <RatedPackage> <TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>5.44</MonetaryValue></TransportationCharges> <ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges> <TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>5.44</MonetaryValue></TotalCharges> <Weight>1.5</Weight> <BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>2.0</Weight></BillingWeight> </RatedPackage> </RatedShipment> <RatedShipment> <Service><Code>12</Code></Service> <BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>2.0</Weight></BillingWeight> <TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.37</MonetaryValue></TransportationCharges> <ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges> <TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.37</MonetaryValue></TotalCharges> <GuaranteedDaysToDelivery>3</GuaranteedDaysToDelivery> <ScheduledDeliveryTime></ScheduledDeliveryTime> <RatedPackage> <TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.37</MonetaryValue></TransportationCharges> <ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges> <TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.37</MonetaryValue></TotalCharges> <Weight>1.5</Weight> <BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>2.0</Weight></BillingWeight> </RatedPackage> </RatedShipment>
×
×
  • Create New...