Zen Cart Logo
Forums / Addon Shipping Modules / v139h USPS Inconsistencies

v139h USPS Inconsistencies

Views: 3,727

Results 1 to 20 of 28
8 May 2012, 3:37 AM
#1
tamdoll avatar

tamdoll

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

v139h USPS Inconsistencies

using Zencart v1.3.9h, usps file info - @version $Id: usps.php 18348F 2012-01-22

site link: http://spottedsheepyarnshoppe.com/zencart

only have one kind of product so far, ((http://spottedsheepyarnshoppe.com/zencart/index.php?main_page=index&cPath=20_5_6_7 - only 1st page having the weight entered.))

Whether logged in as a customer or not and adding 1 item to shopping cart with CA 90210 zip...
USPS First Class 1x.3 = $3.04
Priority $7.05

Then - when updating quantity at the shopping cart page, or at item pages to 2 qty.. price goes down?
USPS First Class 1x.41 = $2.85
Priority $7.05

So that was weird - but at least they're charged shipping. It gets stranger -

Changing quantity in shopping cart a few times &/or adding new items from the product pages works fine - price goes up accordingly, until suddenly, USPS price goes to $0 & it's not at the $75 mark required for free shipping.

If I delete a few items from shopping cart USPS and Priority prices appear again.
It's very inconsistent and I cannot pinpoint when the $0 consistently happens.

Went back to Shipping module at one of these flukes - total is $66.50 and USPS rate appears as $0 - turned on Debug/Screen and got this:

View Source:
Server: production Weight = 0.9575 Pounds: 0 Ounces: 15.32 ZipOrigination: 03045 ZipDestination: 11229 Tare Rates - Small/Medium: 0:.1875 Large: 10:0 RESPONSE FROM USPS:

-2147219434DomesticRatesV3;clsRateV3.ValidateWeight;RateEngineV3.ProcessRequestFirst Class mail must weigh 13 ounces or less.1000440

0304511229015.32REGULAR3 Priority Mail5.25

View Source:
Server: production Weight = 0.9575 Pounds: 0 Ounces: 15.32 ZipOrigination: 03045 ZipDestination: 11229 Tare Rates - Small/Medium: 0:.1875 Large: 10:0 RESPONSE FROM USPS:

0304511229015.32REGULAR3 Priority Mail5.25

Update cart to delete 1 item & total is now $57.00... still with error in price,

One more time, updating cart by updating quantity of one of the items from 2 to 1, price is now $47.50 & UspS price is accurate! with debug:

View Source:
Server: production Weight = 0.7375 Pounds: 0 Ounces: 11.8 ZipOrigination: 03045 ZipDestination: 11229 Tare Rates - Small/Medium: 0:.1875 Large: 10:0 RESPONSE FROM USPS:

0304511229011.8FLATREGULARTRUE3 First-Class Mail3.10

0304511229011.8REGULAR3 Priority Mail5.25

View Source:
Server: production Weight = 0.7375 Pounds: 0 Ounces: 11.8 ZipOrigination: 03045 ZipDestination: 11229 Tare Rates - Small/Medium: 0:.1875 Large: 10:0 RESPONSE FROM USPS:

0304511229011.8REGULAR3 Priority Mail5.25

another update, going over the $75 free shipping mark, Priority appears correct as does $0 Free option

View Source:
Server: production Weight = 1.1775 Pounds: 1 Ounces: 2.84 ZipOrigination: 03045 ZipDestination: 11229 Tare Rates - Small/Medium: 0:.1875 Large: 10:0 RESPONSE FROM USPS:

-2147219434DomesticRatesV3;clsRateV3.ValidateWeight;RateEngineV3.ProcessRequestFirst Class mail must weigh 13 ounces or less.1000440

030451122912.84REGULAR3 Priority Mail5.65

View Source:
Server: production Weight = 1.1775 Pounds: 1 Ounces: 2.84 ZipOrigination: 03045 ZipDestination: 11229 Tare Rates - Small/Medium: 0:.1875 Large: 10:0 RESPONSE FROM USPS:

030451122912.84REGULAR3 Priority Mail5.65

delete one item, price is now $47.50 again, usps price ok... debug:

View Source:
Server: production Weight = 0.7375 Pounds: 0 Ounces: 11.8 ZipOrigination: 03045 ZipDestination: 11229 Tare Rates - Small/Medium: 0:.1875 Large: 10:0 RESPONSE FROM USPS:

0304511229011.8FLATREGULARTRUE3 First-Class Mail3.10

0304511229011.8REGULAR3 Priority Mail5.25

View Source:
Server: production Weight = 0.7375 Pounds: 0 Ounces: 11.8 ZipOrigination: 03045 ZipDestination: 11229 Tare Rates - Small/Medium: 0:.1875 Large: 10:0 RESPONSE FROM USPS:

0304511229011.8REGULAR3 Priority Mail5.25

I cannot figure out what is going on. Any suggestions?

8 May 2012, 3:46 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: v139h USPS Inconsistencies

Please check that you have the current USPS January 22, 2012 loaded:
http://www.zen-cart.com/showthread.php?191406-USPS-January-22-2012

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 May 2012, 1:48 PM
#3
tamdoll avatar

tamdoll

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: v139h USPS Inconsistencies

Ajeh:

Please check that you have the current USPS January 22, 2012 loaded:
http://www.zen-cart.com/showthread.php?191406-USPS-January-22-2012

Yes, that's the one I have, noted it at the top of that long first message, I just cut off the end when pasting -

using Zencart v1.3.9h, usps file info - @version $Id: usps.php 18348F 2012-01-22

9 May 2012, 2:29 PM
#4
tamdoll avatar

tamdoll

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: v139h USPS Inconsistencies

Ajeh:

Please check that you have the current USPS January 22, 2012 loaded:
http://www.zen-cart.com/showthread.php?191406-USPS-January-22-2012

Yes, that's the one I have, noted it at the top of that long first message, I just cut off the end when pasting -

using Zencart v1.3.9h, usps file info - @version $Id: usps.php 18348F 2012-01-22

9 May 2012, 3:15 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: v139h USPS Inconsistencies

When using the debugger ... if you go to the Shipping Estimator the first time when not logged in and have not yet set the address, you will see the error message as there is nothing to processes yet ...

Once your address is set and you update you will see the information settings ...

If you are logged in and go to the Shipping Estimator for the first time, it will have the quotes for the current address ...

I cannot reproduce this ...

If you do a search in the Developers Tool Kit for:
ups.php

what comes up for the UPS shipping module on the version?

Do you have any other shipping modules, besides Store Pickup, that are installed but are disabled? If so, click on them and do a REMOVE ...

Have you made any kind of customizations to your shipping modules?

Have you made any changes to the files:
/includes/classes/shipping.php
/includes/classes/orders.php
/includes/classes/shopping_cart.php

Was this a Clean install of Zen Cart v1.3.9 or an Upgrade?

Does anything change if you switch to the Classic Template?

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!

9 May 2012, 7:13 PM
#6
tamdoll avatar

tamdoll

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: v139h USPS Inconsistencies

Clean install of Zen Cart v1.3.9h

usps.php -
zencart/includes/languages/english/modules/shipping/usps.php
Line #6 : * @version $Id: usps.php 18348F 2012-01-22 01:22:00Z ajeh $
zencart/includes/modules/shipping/usps.php
Line #9 : * @version $Id: usps.php 18348F 2012-01-22 01:22:00Z ajeh $

ups.php info -
zencart/includes/languages/english/modules/shipping/ups.php
Line #19 : // $Id: ups.php 1969 2005-09-13 06:57:21Z drbyte $
zencart/includes/modules/shipping/ups.php
Line #6 : * @version $Id: ups.php 14498 2009-10-01 20:16:16Z ajeh $

I removed other shipping modules...

Logging in or just typing the state and zip code gets same results.
In my template, still get inconsistent and occasional $0s. So, I switched to Classic and prices are improved except for when there is only 1 item in cart. With only 1 item, the price is higher than when I put 2 items in cart. Now I have to figure out what I did wrong in my template to make things go to $0. How can this be? It seems to trigger when weight goes over 13oz (.81).

I am not home right now to see my notes - usually I comment in the file if I edit, but did not find any changes in:
zencart/includes/classes/shipping.php
zencart/includes/classes/shopping_cart.php

I did not find orders.php right away.. found it in here -
zencart/admin..../includes/languages/english/orders.php
zencart/admin.../orders.php

found order.php in these places -
zencart/admin..../includes/classes/order.php
zencart/includes/classes/order.php

There's also another shopping_cart.php in zencart/includes/languages/english/shopping_cart.php & the sideboxes folder...

Thanks for helping out with this. I'm heading to my other computer and will check there to see if you reply or if I have any other notes on the shopping_cart pages.

9 May 2012, 10:08 PM
#7
tamdoll avatar

tamdoll

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: v139h USPS Inconsistencies

I didn't have any more information to add to my most recent reply.

10 May 2012, 1:51 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: v139h USPS Inconsistencies

Go to Configuration ... Shipping/Packaging ... what are your settings?

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!

10 May 2012, 3:41 PM
#9
tamdoll avatar

tamdoll

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: v139h USPS Inconsistencies

Country of Origin United States
Postal Code 03045
Enter the Maximum Package Weight you will ship 50
Package Tare Small to Medium - added percentage:weight 0:.1875
Larger packages - added packaging percentage:weight 10:0
Display Number of Boxes and Weight Status 3
Order Free Shipping 0 Weight Status 0
Shipping Estimator Display Settings for Shopping Cart 2
Display Order Comments on Admin Invoice 1
Display Order Comments on Admin Packing Slip 1

11 May 2012, 5:58 PM
#10
tamdoll avatar

tamdoll

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: v139h USPS Inconsistencies

Any suggestion?

11 May 2012, 6:14 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: v139h USPS Inconsistencies

I still cannot reproduce this issue ...

I see it happening on your site, but I cannot make it happen on any of my sites with the same settings ...

Have you added any kind of add ons to do with shipping in any manner?

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!

12 May 2012, 12:14 PM
#12
tamdoll avatar

tamdoll

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: v139h USPS Inconsistencies

I haven't any other addons regarding shipping. Since there are 2 problems (which one do you see?)

  • the 1 item being higher shipping price than 2 items
  • the switch to $0 at a certain amount.... that didn't happen in Classic template.....

Where/what files should I look at regarding the Classic template fix? If most of it works there, then I should be able to edit something, I just don't know where I went wrong in my template that would affect this.

12 May 2012, 12:49 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: v139h USPS Inconsistencies

Set your debug logs to Logs in the USPS module ... they will show in the /cache directory

Clean out your debug logs from the /cache ...

add quantity 1 to the cart ...

Set your address and hit update ...

wait about a minute and hit update ...

Refresh your /cache and copy the contents of the newest debug log for USPS ...

Wait about a minute and change the quantity to 6 ... then refresh your /cache and copy the contents of the newest debug log for USPS ...

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!

12 May 2012, 4:12 PM
#14
tamdoll avatar

tamdoll

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: v139h USPS Inconsistencies

Did as directed - with quantity 1 - 5 debug logs - most recent one says:

May 12 2012 9:06:34 --
Server: production

Weight = 0.2975 Pounds: 0 Ounces: 4.76
ZipOrigination: 03045
ZipDestination: 11229
Tare Rates - Small/Medium: 0:.1875 Large: 10:0

RESPONSE FROM USPS:

<?xml version="1.0"?> <RateV3Response>

<Package ID="0"><ZipOrigination>03045</ZipOrigination><ZipDestination>11229</ZipDestination><Pounds>0</Pounds><Ounces>4.76</Ounces><FirstClassMailType>FLAT</FirstClassMailType><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>3</Zone>
<Postage CLASSID="0"><MailService>First-Class Mail</MailService><Rate>2.29</Rate></Postage>
</Package></RateV3Response>

next Reply will be with quantity 6.

12 May 2012, 4:15 PM
#15
tamdoll avatar

tamdoll

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: v139h USPS Inconsistencies

with quantity 6 debug log - (Priority Mail option is correct!)

May 12 2012 9:13:19 --
Server: production

Weight = 0.8475 Pounds: 0 Ounces: 13.56
ZipOrigination: 03045
ZipDestination: 11229
Tare Rates - Small/Medium: 0:.1875 Large: 10:0

RESPONSE FROM USPS:

<?xml version="1.0"?> <RateV3Response>

<Package ID="0"><Error><Number>-2147219434</Number><Source>DomesticRatesV3;clsRateV3.ValidateWeight;RateEngineV3.ProcessRequest</Source><Description>First Class mail must weigh 13 ounces or less.</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error></Package></RateV3Response>

12 May 2012, 4:20 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: v139h USPS Inconsistencies

On the debug logs that you are posting it looks like you only have First Class setup on the USPS shipping module ...

Can you go to the Modules ... Shipping ... and click on USPS ... do a REMOVE, INSTALL, and reconfigure it ... again with the Debug set to logs ... and try the two conditions again to the same address, same quantities, etc. ...

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!

12 May 2012, 4:21 PM
#17
tamdoll avatar

tamdoll

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: v139h USPS Inconsistencies

3rd debug log (in all of these, I've turned off the Free Shipping module, too) - this one came up as an incorrect price of $0, $65.50 total & .96lbs -

May 12 2012 9:16:42 --
Server: production

Weight = 0.9575 Pounds: 0 Ounces: 15.32
ZipOrigination: 03045
ZipDestination: 11229
Tare Rates - Small/Medium: 0:.1875 Large: 10:0

RESPONSE FROM USPS:

<?xml version="1.0"?> <RateV3Response>

<Package ID="0"><Error><Number>-2147219434</Number><Source>DomesticRatesV3;clsRateV3.ValidateWeight;RateEngineV3.ProcessRequest</Source><Description>First Class mail must weigh 13 ounces or less.</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error></Package>

<Package ID="1"><ZipOrigination>03045</ZipOrigination><ZipDestination>11229</ZipDestination><Pounds>0</Pounds><Ounces>15.32</Ounces><Container></Container><Size>REGULAR</Size><Zone>3</Zone>
<Postage CLASSID="1"><MailService>Priority Mail</MailService><Rate>5.25</Rate></Postage>
</Package></RateV3Response>

12 May 2012, 4:26 PM
#18
tamdoll avatar

tamdoll

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: v139h USPS Inconsistencies

Ok, doing that now. Priority & First Class were chosen first time, too. Will reply back in a few.

12 May 2012, 4:37 PM
#19
tamdoll avatar

tamdoll

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: v139h USPS Inconsistencies

May 12 2012 9:31:52 --
Server: production

Weight = 0.2975 Pounds: 0 Ounces: 4.76
ZipOrigination: 03045
ZipDestination: 11229
Tare Rates - Small/Medium: 0:.1875 Large: 10:0

RESPONSE FROM USPS:

<?xml version="1.0"?> <RateV3Response>

<Package ID="0"><ZipOrigination>03045</ZipOrigination><ZipDestination>11229</ZipDestination><Pounds>0</Pounds><Ounces>4.76</Ounces><FirstClassMailType>FLAT</FirstClassMailType><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>3</Zone>
<Postage CLASSID="0"><MailService>First-Class Mail</MailService><Rate>2.29</Rate></Postage>
</Package>

<Package ID="1"><ZipOrigination>03045</ZipOrigination><ZipDestination>11229</ZipDestination><Pounds>0</Pounds><Ounces>4.76</Ounces><Container></Container><Size>REGULAR</Size><Zone>3</Zone>
<Postage CLASSID="1"><MailService>Priority Mail</MailService><Rate>5.25</Rate></Postage>
</Package></RateV3Response>

Now with 6 (1 x .85lbs - $0 for USPS error):

May 12 2012 9:35:58 --
Server: production

Weight = 0.8475 Pounds: 0 Ounces: 13.56
ZipOrigination: 03045
ZipDestination: 11229
Tare Rates - Small/Medium: 0:.1875 Large: 10:0

RESPONSE FROM USPS:

<?xml version="1.0"?> <RateV3Response>

<Package ID="0"><Error><Number>-2147219434</Number><Source>DomesticRatesV3;clsRateV3.ValidateWeight;RateEngineV3.ProcessRequest</Source><Description>First Class mail must weigh 13 ounces or less.</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error></Package>

<Package ID="1"><ZipOrigination>03045</ZipOrigination><ZipDestination>11229</ZipDestination><Pounds>0</Pounds><Ounces>13.56</Ounces><Container></Container><Size>REGULAR</Size><Zone>3</Zone>
<Postage CLASSID="1"><MailService>Priority Mail</MailService><Rate>5.25</Rate></Postage>
</Package></RateV3Response>

12 May 2012, 4:41 PM
#20
ajeh avatar

ajeh

Oba-san

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

Re: v139h USPS Inconsistencies

Could you go to Modules ... Shipping ... and click on USPS ... then post what shows in the right column ... this is not making sense at all ...

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!