Oba-san
- Join Date:
- Sep 2003
- Location:
- Ohio
- Posts:
- 62,757
- Plugin Contributions:
- 1
USPS RateV4 Intl RateV2 - January 26, 2014 Issue
If you have trouble with that code, try changing this section of the code:
function _getQuote() {
global $order;
global $shipping_weight, $currencies;
global $logfilename;
// force GroundOnly results in Stand Post only being offered
// to use, you must have a field for products_groundonly in the products table
// then uncomment the in_cart_check for the products_groundonly
// when $usps_groundonly is set to true, only Stand Post will show
$usps_groundonly = 'false';
// $usps_groundonly = ($_SESSION['cart']->in_cart_check('products_groundonly','1') ? 'true' : 'false');
[B] if ($usps_groundonly == 'false') {
[/B] // no GroundOnly products
$usps_groundonly = '';
} else {
// 1+ GroundOnly products
$usps_groundonly = '<Content>' .
'<ContentType>HAZMAT</ContentType>' .
'</Content>' .
'<GroundOnly>' . $usps_groundonly . '</GroundOnly>';
}
//echo 'USPS function _getQuote $this->enabled: ' . ($this->enabled ? ' ON' : ' OFF') . ' $shipping_weight: ' . $shipping_weight . '<br>';
if ((int)SHIPPING_ORIGIN_ZIP == 0) {
We take the champagne and pizza any way we can get it ... :cool:
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!