Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Quote:
Originally Posted by
njcyx
Hi @carlwhat
Sorry, I spoken too early again.
I only used "Display Log Files" function in zc admin page to view the log files, and I cannot find it there. After I used FTP to view the /logs folder, I can find the UPS log files there. Format is upsoauth-2023xxxx.log.
Can you get a UPS shipping quote in the "estimate shipping" page in the shopping cart?
Hi @lat9,
-Here is my input regarding the negotiated rates. Our UPS account has a negotiated rates. I tried all your provided Customer Classification Code options, here is what I found:
For 00, 05 and 06, they display the same rate (negotiated rate). But for 01, 04 and 53, I have three different rates. Here is the compare result:
00<53<04<01
Not sure why there are four different rates under my UPS account.
- I have one more input for the pickup method. Here are five options available in this plug-in:
Daily Pickup, Customer Counter, One Time Pickup, On Call Air Pickup, Letter Center and Air Service Center
Daily Pickup, Customer Counter, One Time Pickup: no rate changes.
On Call Air Pickup: $13 is added on every tiers.
Letter Center and Air Service Center: Ground and 3 day select options were gone. No price difference.
For the "Display Log Files" to display these logs, you'll need to add the upsoauth- prefix to Configuration :: Logging :: Display Logs: Included File Prefixes.
I can't speak to the vagaries of the different UPS rates based on the Customer Classification Code, but I've found the 04 (Retail) rates return the same as those published on the ups.com "Quote" tool. You just need to choose the classification code that 'works' for what you want to charge your customers.
I, too, saw that On Call Air Pickup adds $13 for each order. If that's the means that your store uses to get the packages in UPS' hands, then that's what they charge.
Ditto on the Package Types; I'll surmise that certain package types aren't supported for some of the UPS shipping methods.
P.S. For negotiated rates, be sure to use 0.0.1 or later.
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Hi @lat9,
Thanks for your information.
I have one more question. Is it normal that UPS quote is not showing under the estimate shipping section in the shopping cart?
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Quote:
Originally Posted by
njcyx
Hi @lat9,
Thanks for your information.
I have one more question. Is it normal that UPS quote is not showing under the estimate shipping section in the shopping cart?
that is not normal...
there should be a log as to why it is not showing up.
on 1 of my test sites running the bootstrap template, it shows up just fine...
best.
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Hi @carlwhat,
Thanks! I took a look at the log file and now I know the reason why it doesn't show up on my end now.
#1: In the estimate shipping quote page, if I only entered the zip code, but not choose any US states (Please Select), I can get the USPS and FedEx shipping quote.
#2: If I entered the zip code and choose a proper US state, I can get USPS, UPS and FedEx quote.
#3: If I entered the zip code but choose a wrong US state, I can get USPS and FedEx quote.
In other word, I need to select the correct state in the estimate shipping quote page, otherwise there will be no UPS quote.
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
You really have to enter all three for the system to work properly. You can get lucky by entering partial data, but the system expects all three.
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Quote:
Originally Posted by
njcyx
Hi @lat9,
Thanks for your information.
I have one more question. Is it normal that UPS quote is not showing under the estimate shipping section in the shopping cart?
For this UPS shipping module, no UPS quote will be shown if no such quote is returned. That can happen if your configuration settings (like the origin elements) or the state/zipcode aren't recognized by UPS.
Note, too, that if you're requesting Negotiated-rate quotes from UPS that UPS expects country, state and zip to be entered. If you're in a state (like Florida) that allows one zip-code to cross multiple counties (!), you might need to enter the city as well to get a quote returned.
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Hi @swguy and @lat9, thanks for your information.
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
The first (v1.0.0) 'official' release of the UPS RESTful/OAuth shipping module is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2374
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
I received a warning today. Plug-in version v1.0.0. Zc 1.5.7d. PHP 7.4
[26-Jun-2023 14:39:21 America/New_York] Request URI: /ajax.php?act=ajaxOnePageCheckout&method=updateShipping
#1 upsoauth->getConfiguredUpsQuotes() called at [/includes/modules/shipping/upsoauth.php:383]
#2 upsoauth->quote() called at [/includes/classes/shipping.php:174]
#3 shipping->quote() called at [/includes/classes/ajax/zcAjaxOnePageCheckout.php:163]
#4 zcAjaxOnePageCheckout->updateShipping() called at [/ajax.php:85]
--> PHP Warning: Invalid argument supplied for foreach() in /includes/modules/shipping/upsoauth.php on line 642.
Line 642 is the following:
foreach ($all_ups_quotes->RateResponse->RatedShipment as $next_shipment) {
I added one line above this section and it seems working fine:
if (is_iterable($all_ups_quotes->RateResponse->RatedShipment)) {
foreach ($all_ups_quotes->RateResponse->RatedShipment as $next_shipment) {
...
}
}
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Quote:
Originally Posted by
njcyx
I received a warning today. Plug-in version v1.0.0. Zc 1.5.7d. PHP 7.4
[26-Jun-2023 14:39:21 America/New_York] Request URI: /ajax.php?act=ajaxOnePageCheckout&method=updateShipping
#1 upsoauth->getConfiguredUpsQuotes() called at [/includes/modules/shipping/upsoauth.php:383]
#2 upsoauth->quote() called at [/includes/classes/shipping.php:174]
#3 shipping->quote() called at [/includes/classes/ajax/zcAjaxOnePageCheckout.php:163]
#4 zcAjaxOnePageCheckout->updateShipping() called at [/ajax.php:85]
--> PHP Warning: Invalid argument supplied for foreach() in /includes/modules/shipping/upsoauth.php on line 642.
Line 642 is the following:
foreach ($all_ups_quotes->RateResponse->RatedShipment as $next_shipment) {
I added one line above this section and it seems working fine:
if (is_iterable($all_ups_quotes->RateResponse->RatedShipment)) {
foreach ($all_ups_quotes->RateResponse->RatedShipment as $next_shipment) {
...
}
}
I've created a tracking issue on the shipping module's GitHub repository (https://github.com/lat9/upsoauth/issues/7). Any chance that you've got a upsoauth*.log file from that errant transaction?