if ($this->usps_countries == 'US' && MODULE_SHIPPING_USPS_FIRST_CLASS_FILTER_US == 'True' && preg_match('#First\-Class#i', $type) && $cnt_first > 1) continue;
// bof: skip First Class based on Country
$skip_first_class = false;
if ($this->usps_countries == 'CZ' || $this->usps_countries == 'RU') {
$skip_first_class = true;
}
if (preg_match('#First\-Class.*(?!GXG|International)#i', $type) && $skip_first_class) {
// skip first class
} else {
$methods[] = array('id' => $type_rebuilt,
'title' => $title,
'cost' => $cost,
);
}
// eof: skip First Class based on Country
} else {
//echo 'MISSING! USPS $type: ' . $type . (in_array($type, $this->typeCheckboxesSelected) ? ' YES' : ' NO') . ' $method: ' . $method . ' $usps_shipping_weight: ' . $usps_shipping_weight . ' $minweight: ' . $minweight . ' $maxweight: ' . $maxweight . '<br>';
}
} // end for $i to $PackageSize
if (sizeof($methods) == 0) return false;
Bookmarks