Make sure that you have installed:
January 2, 2011 USPS C
Then, be sure that you did a REMOVE, INSTALL and reconfigure ... after loading this file to the server ...
Printable View
Make sure that you have installed:
January 2, 2011 USPS C
Then, be sure that you did a REMOVE, INSTALL and reconfigure ... after loading this file to the server ...
just wanted to say thanks for the hard work ajeh. donated a few $ to help with the coffee expenses you guys have.. lol
i would like to say that it took me forever to find the right download so it might be a good idea to update some of the links to the correct file. i think i found 3 or 4 versions before finding the right one. even the version in the announcements section was the wrong one for 1.3.8a.
thanks again for the hard work you guys do!
I did this and now I get this error
-2147218052 - The ounces field must be less than 5 digits
It appears to be working for me too. Thanks again for the fix!!!
Jay
1.3.9h
........now, if I could just get my Media Mail check back into the usps.php file again, I'd be a happy camper.........
is there something about this code which now needs to be altered?
that code worked fine with the old file, but not-so-hot with the new one........Code:// bof: Media Check
// test contents for Media Mail
$skip_media = false;
$chk_media = 0;
$chk_media += $_SESSION['cart']->in_cart_check('master_categories_id','10');
$chk_media += $_SESSION['cart']->in_cart_check('master_categories_id','25');
if ($chk_media != $_SESSION['cart']->count_contents()) {
$skip_media = true;
}
//echo '<br>IN USPS I SEE ' . $chk_media . ' count: ' . $_SESSION['cart']->count_contents() . ' Skip Media: ' . ($skip_media == true ? 'YES' : 'NO') . '<br>';
$methods = array();
$size = sizeof($uspsQuote);
for ($i=0; $i<$size; $i++) {
list($type, $cost) = each($uspsQuote[$i]);
// BOF: UPS USPS
$title = ((isset($this->types[$type])) ? $this->types[$type] : $type);
if(in_array('Display transit time', explode(', ', MODULE_SHIPPING_USPS_OPTIONS))) $title .= $transittime[$type];
/*
$methods[] = array('id' => $type,
'title' => ((isset($this->types[$type])) ? $this->types[$type] : $type),
'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
*/
if ($type == 'MEDIA' && $skip_media) {
// skip Media Mail
} else {
$cost = preg_replace('/[^0-9.]/', '', $cost);
$methods[] = array('id' => $type,
'title' => $title,
'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) );
}
}
// bof: Media Check
(thank you)
maybe my placement was just wrong? I placed it just ahead of
Code:// fix new trademark and reg 01-02-2011
I am having the same problem as 'schobing'. The option for Express International and Priority International are there, but when Priority is chosen, the next step will automatically choose Express Mail. Customers cannot choose Priority International unless I turn off the Express option.
if anyone can help..that'll be great!
Thanks so much!
I cannot reproduce this issue with the USPS January 2, 2011 C from post #26 ...
Please go through post #26 and make sure that you download that version of USPS and go through the steps ...
http://www.zen-cart.com/forum/showth...059#post978059