This took me a while to hunt down, but I think this should work ...
I believe you are trying to stop the use of Priority Mail when the Zone is greater than 4 ... if so then try this ...
Around line 393 add the code in RED:
Code:
$type = $this->clean_usps_marks($Package['MailService']);
$usps_ship_zone = $uspsQuote['Package'][$i]['Zone'];
//echo 'USPS Domestic $type: ' . $type . ' $cost: ' . $cost . '<br>';
then around line 592 change the code to read:
Code:
$show_hiddenCost = '';
if ($type_rebuilt == 'Priority MailTM' && $usps_ship_zone > 4) {
//echo 'Skip: ' . $type_rebuilt . ' zone: ' . $usps_ship_zone . '<br>';
// skip
} else {
$methods[] = array('id' => $type_rebuilt,
'title' => $title . $show_hiddenCost,
'cost' => $cost,
);
}
} else {
Bookmarks