
Originally Posted by
Ajeh
You could use the CUSTOM setting:
and show the days by turning on the:
Then, in the function parseIntlTransitTimeResults($Package, $service) you will see where the days can be customized ...
Oddly enough it is already set to Custom and the "Display Transit time" is checked.
I searched and found the function mentioned in the usps.php file. But it was not obvious how to customize it.
Code:
function parseIntlTransitTimeResults($Package, $service) {
global $logfilename;
if (MODULE_SHIPPING_USPS_DEBUG_MODE == 'Logs') {
$fp = @fopen($logfilename, 'a');
}
if (isset($this->transittime[$service]) && $this->transittime[$service] == '' && preg_match('#(GXG|International)#i' , $service)) {
$time = $Package['SvcCommitments'];
$time = preg_replace('/Weeks$/', MODULE_SHIPPING_USPS_TEXT_WEEKS, $time);
$time = preg_replace('/Days$/', MODULE_SHIPPING_USPS_TEXT_DAYS, $time);
$time = preg_replace('/Day$/', MODULE_SHIPPING_USPS_TEXT_DAY, $time);
$this->transittime[$service] = $time == '' ? '' : ' (' . $time . ')';
}
// do logging if the file was opened earlier by the config switch
if ($fp) {
fwrite($fp, date('M d Y G:i:s') . ' -- Transit Time (Intl)' . "\nService: " . $service . "\nSvcCommitments (from USPS): " . $Package['SvcCommitments'] . "\n" . '$time (calculated): ' . $time . "\nTranslation: " . $this->transittime[$service] . "\n\n");
fclose($fp);
}
}
What is odd, is that the Priority mail transit time is shown, but the first class is not shown.
Bookmarks