Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Shipping Modules / UPSXML - Must click update within shipping estamtor to see rates

UPSXML - Must click update within shipping estamtor to see rates

Started by bdougherty on 30 Jul 2013, 12:33 PM · Views: 622

Results 1 to 2 of 2
30 Jul 2013, 12:33 PM
#1
bdougherty avatar

bdougherty

New Zenner

Join Date:
Jul 2013
Location:
Fort Myers. Florida
Posts:
3
Plugin Contributions:
0

Post #1 by bdougherty

Hello,

I recently installed the UPSXML shipping modiule and have been quite happy with the results so far. The only issue I have is that the customer must click the Update button in the shipping estimator pop up window before the rates will display. I understand when you first use the pop up estimator the country, state, and zip have not been selected so you must complete these fields then click update. But if you continue shopping and use the shipping estimator again the country, state, and zip code are retained but the rates do not show until you click Update.

This was not the case with the older ups shipping module we used. And if USPS is enabled their rates show without having to click update. It is only the rates from UPSXML that require the page to be submitted.

I have tried adding javascript to auto-submit the page. This works but causes the page to display twice and there is a 1 to 2 second delay between refresh.

Does anyone know how to get the rates to display when the page is loaded?

Zen-cart 1.3.7.
UPS XML Rates v1.2.5d

Thanks,
Brian

31 Jul 2013, 2:56 PM
#2
bdougherty avatar

bdougherty

New Zenner

Join Date:
Jul 2013
Location:
Fort Myers. Florida
Posts:
3
Plugin Contributions:
0

Post #2 by bdougherty

Update - Resolved

I had to modify the file upsxml.php as follows:

// begin modification - get state for estimator
// $state = zen_get_zone_code($order->delivery['country']['id'], $order->delivery['zone_id'], '');
global $state_zone_id;
$state = zen_get_zone_code($order->delivery['country']['id'], $order->delivery['zone_id'], '');
if ($state == "") { $state = $state = zen_get_zone_code($order->delivery['country']['id'], $state_zone_id, ''); }
// end modification - get state for estimator