14
Jan 11

Fix: UPS shipping calculator for regular daily pickup

This notice only applies to clients utilizing UPS Shipping Calculators with the “Regular Daily Pickup” setting selected in the Shipping Calculators admin. Clients using “Customer Counter” may safely ignore this announcement.

The UPS has changed their API — and the “Regular Daily Pickup” option no longer returns the correct prices. For some reason, that method returns the same rates as the “Customer Counter” option — fortunately, the “One Time Pickup” option now returns the same rates as what “Regular Daily Pickup” used to return — so, adding this code:

Code:
if ($RateChart == ‘Regular+Daily+Pickup’) {
   $RateChart = ‘One+Time+Pickup’;
}

in the file inc/cart_functions.php

immediately *after* this line (around line 357, depending on your shopping catalog version):

Code:
$RateChart = value_from_id(‘tbl_ups_rate_chart’, ‘rate_chart_id’, ‘rate_chart’, $SHIPPING_CALCULATOR_CONTROL->ups_rate_chart_id);

will give you the correct prices for “Regular Daily Pickup”.

Leave a Reply

You must be logged in to post a comment.