Forums / Addon Shipping Modules / help with first class - should not show for over 1 pound

help with first class - should not show for over 1 pound

Locked

Started by keylesslocks on 7 Oct 2008, 5:03 PM · Views: 1,309

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
7 Oct 2008, 5:03 PM
#1
keylesslocks avatar

keylesslocks

Zen Follower

Join Date:
May 2007
Posts:
267
Plugin Contributions:
0

help with first class - should not show for over 1 pound

we have first class USPS enabled, so it calculates under 13 ounces, but on our checkout page:

https://midwestapplianceparts.com/index.php?main_page=checkout&action=null

when the cart is over 1 pound, it should only show ups, but it also shows: USPS and says: "-2147219434 - First Class mail must weigh 13 ounces or less."

questions:

  1. why does it say anything? it is over 13 ounces, it should just say, "Not available"

  2. why does it say -2147219434?

  3. how can I fix this? :wacko:

MonkFunk Music Community
Free Music Website

8 Oct 2008, 3:10 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: help with first class - should not show for over 1 pound

You could customize the USPS shipping module to not show the error codes ...

Change the code around line 166 or so to read:

    if (is_array($uspsQuote)) {
      if (isset($uspsQuote['error'])) {
/*
// don't display error on shop
        $this->quotes = array('module' => $this->title,
                              'error' => $uspsQuote['error']);
*/
      } else {

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

8 Oct 2008, 8:45 PM
#3
keylesslocks avatar

keylesslocks

Zen Follower

Join Date:
May 2007
Posts:
267
Plugin Contributions:
0

Re: help with first class - should not show for over 1 pound

Ajeh:

You could customize the USPS shipping module to not show the error codes ...

Change the code around line 166 or so to read:

if (is_array($uspsQuote)) {
  if (isset($uspsQuote['error'])) {

/*
// don't display error on shop
$this->quotes = array('module' => $this->title,
'error' => $uspsQuote['error']);
*/
} else {


cool that worked... it says nothing now.. i would really like to put a custom error message in there

MonkFunk Music Community
Free Music Website

9 Oct 2008, 12:26 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: help with first class - should not show for over 1 pound

You could replace that info with what you want it to read ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!