Zen Cart Logo
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

Views: 1,308

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:

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 {
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
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 ...