Forums / Addon Shipping Modules / USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Started by marco_b on 18 May 2011, 2:07 AM · Views: 65,922

Results 41 to 60 of 336
22 Jul 2011, 5:22 AM
#41
sunshinepro avatar

sunshinepro

New Zenner

Join Date:
Aug 2010
Posts:
32
Plugin Contributions:
0

USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

my url is https://www.starsmagickshop.com

I've done everything i've been told and it is not working.

22 Jul 2011, 5:48 AM
#42
sunshinepro avatar

sunshinepro

New Zenner

Join Date:
Aug 2010
Posts:
32
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

I've tried setting the box sizes and it is still not working - for some reason it keeps thinking that 1 oz is over a pound. I have been trying to fix this for over 12 hours now.

please help me.

22 Jul 2011, 5:55 AM
#43
sunshinepro avatar

sunshinepro

New Zenner

Join Date:
Aug 2010
Posts:
32
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

This is what it is telling me for 1 oz item

weight: +lb, dimensions: regular
Setting dimensions: l=12 w=12 h=12 for Weight: 0.0625
Weight/Dimension Filtering Enabled.
Removed 'Priority Mail Large Flat Rate Box'
Removed 'Priority Mail Large Flat Rate Box'
Removed 'Priority Mail Medium Flat Rate Box'
Removed 'Priority Mail Medium Flat Rate Box'
Removed 'Priority Mail Small Flat Rate Box'
Removed 'Priority Mail Padded Flat Rate Envelope'
Added Insurance, cost:1.80 to Priority Mail

USPS Debug Mode Enabled!

weight: +lb, dimensions: regular
Setting dimensions: l=12 w=12 h=12 for Weight: 0.1875
Weight/Dimension Filtering Enabled.
Added Insurance, cost:1.80 to Priority Mail

Shipping quotes are based on the address information you selected:
Available Shipping Methods Rates
United States Postal Service (Priority Mail (2 days)) $9.85

22 Jul 2011, 6:00 AM
#44
sunshinepro avatar

sunshinepro

New Zenner

Join Date:
Aug 2010
Posts:
32
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

I tested a larger item and got this???????????????????

USPS Debug Mode Enabled!

weight: +lb, dimensions: regular
Setting dimensions: l=12 w=12 h=12 for Weight: 10
Weight/Dimension Filtering Enabled.
Removed 'Priority Mail Large Flat Rate Box'
Removed 'Priority Mail Large Flat Rate Box'
Removed 'Priority Mail Medium Flat Rate Box'
Removed 'Priority Mail Medium Flat Rate Box'
Removed 'Priority Mail Small Flat Rate Box'
Removed 'Priority Mail Padded Flat Rate Envelope'
Added Insurance, cost:2.30 to Priority Mail
Error returned for a package:
SimpleXMLElement Object
(
[@attributes] => Array
(
[ID] => 1
)

[Error] => SimpleXMLElement Object
    (
        [Number] => -2147219434
        [Source] => DomesticRatesV4;clsRateV4.ValidateWeight;RateEngineV4.ProcessRequest
        [Description] => First Class mail must weigh 13 ounces or less.
        [HelpFile] => SimpleXMLElement Object
            (
            )

        [HelpContext] => 1000440
    )

)

USPS Debug Mode Enabled!

weight: +lb, dimensions: regular
Setting dimensions: l=12 w=12 h=12 for Weight: 10
Weight/Dimension Filtering Enabled.
Added Insurance, cost:2.30 to Priority Mail

22 Jul 2011, 6:10 AM
#45
sunshinepro avatar

sunshinepro

New Zenner

Join Date:
Aug 2010
Posts:
32
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

How do I go back to the one that came with zen cart? This mod is not working for my site.

22 Jul 2011, 8:12 AM
#46
sunshinepro avatar

sunshinepro

New Zenner

Join Date:
Aug 2010
Posts:
32
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

This is what i get when I have the box sizes set.......

USPS Debug Mode Enabled!

weight: 0.0625lb, dimensions: 12x4x1
Setting dimensions: l=12 w=4 h=1 for Weight: 0.0625

USPS Debug Mode Enabled!

weight: 0.0625lb, dimensions: 12x4x1
Setting dimensions: l=12 w=4 h=1 for Weight: 0.0625

United States Postal Service (Priority Mail (2 days))
United States Postal Service (Priority Mail Large Flat Rate Box (2 days))

and this is what I get when it is not set.

weight: +lb, dimensions: regular
Setting dimensions: l=12 w=12 h=12 for Weight: 0.0625
Volume Filtering enabled but volume information not found. Was the database patch applied? Added Insurance, cost:1.80 to Priority Mail
Added Insurance, cost:1.80 to Priority Mail Large Flat Rate Box

USPS Debug Mode Enabled!

weight: +lb, dimensions: regular
Setting dimensions: l=12 w=12 h=12 for Weight: 0.0625
Volume Filtering enabled but volume information not found. Was the database patch applied?Added Insurance, cost:1.80 to Parcel Post

Available Shipping Methods
United States Postal Service (Priority Mail (2 days))
United States Postal Service (Priority Mail Large Flat Rate Box (2 days))

Still no 1st class....

Here is my site link.... starsmagickshop.com

22 Jul 2011, 1:21 PM
#47
marco_b avatar

marco_b

New Zenner

Join Date:
Dec 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Ok, It's quite clear why that is happening. The package error for first class is informational only. USPS does not provide first class domestic for items over 13oz so the module behaviour is correct in this case.

Use the USPS online documentation to find out what limitations apply for a particular service.

Also you are filtering based on weight/dimensions and did not provide any weight dimension rules to get it going.

Look here: http://postcalc.usps.gov/
for some dimensions of flat rate boxes and set some dimensions in the configuration.

Module weight/dimensions config example:

8x5x1.5;0.5
11x8x5;3
12x12x5;6
regular;+

This configuration will quote the Small FR box for items 0.5lb or less.
Medium FR for items 3lb or less
Large FR for items 6lb or under
All Flat rate options are filtered once weight is over 6lb

You can use this and customise the weights to your liking.

You can see how the weight/dimensions filtering and dimension selection works in debug mode. Your examples show dimensions being set to 'regular' which is 12x12x12 filtering out all flat rate options.

22 Jul 2011, 1:29 PM
#48
marco_b avatar

marco_b

New Zenner

Join Date:
Dec 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

On your last example you enabled volume filtering without adding the volume data to the items. The module correctly reported that no volume data was found so no option filtering was done.

You had the situation reversed! You entered dimensions and used volume filtering... If you had entered dimensions and used dimension/weight filtering you might have made some progress by now.

Try what I suggested in my previous post if you want to filter based on weight/dimensions rather than volume.

22 Jul 2011, 1:58 PM
#49
marco_b avatar

marco_b

New Zenner

Join Date:
Dec 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

I had a quick look at your shop and it looks like first class is enabled for international postage but not for domestic.

You have to tick the box.

There is also allot of weird behavior happening - modules being loaded more than once etc. The integration of shipping estimator into the shopping cart page is a little off. Someone has been messing with the Zencart core module files. Maybe you should speak to the person programming your site while you are at it.

22 Jul 2011, 2:39 PM
#50
marco_b avatar

marco_b

New Zenner

Join Date:
Dec 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Here is the latest version of my module - this is still in the final testing stages but is almost ready for release. It has Separate handling fees for International and Domestic as an added bonus.

You will have to Uninstall/Install to get this going.

I believe the earlier test version might have had issues with domestic first class due to a technicality with the USPS API and changes in the way quotes are retrieved. :frusty:

Don't panic about First Class - Try this one!

22 Jul 2011, 9:39 PM
#51
sunshinepro avatar

sunshinepro

New Zenner

Join Date:
Aug 2010
Posts:
32
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Well I am Pleased to say that since you gave me that new file and me re-installing.... again.....
It seems as if everything is working.:clap:

here are my settings inside the usps settings

Enable USPS Shipping
True

Enter the USPS Web Tools User ID
##############################_

Which server to use
production

Handling Fee - US

Handling Fee - International

Handling Per Order or Per Box
Box

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
--none--

Sort Order
0

All Packages are Machinable
True

International Quote Options
Insurance

Domestic Quote Options
Insurance

USPS Options
Display weight, Display transit time

Package Dimensions Config
8x5x1.5;0.5 11x8x5;3 12x12x5;6 regular;+

Enable Commercial Shipping
N

Domestic Shipping - Commercial Services
--none--

Domestic Shipping Methods
Priority Mail, Priority Mail Large Flat Rate Box, Priority Mail Medium Flat Rate Box, Priority Mail Small Flat Rate Box, First-Class Mail Package

International Shipping Methods
Priority Mail International, Priority Mail Int Flat Rate Small Box, Priority Mail Int Flat Rate Med Box, Priority Mail Int Flat Rate Lrg Box, First Class Mail Int Package

Shipping Quote Options Filtering
Weight

Debug Mode
Off

THANK YOU! for Helping me with this - :hug::clap:

If you can check my site again? starsmagickshop.com

I'm not sure what boxes were over layering. I removed on to that i saw an issue with....

ok well thanks again.:hug:

24 Jul 2011, 1:46 AM
#52
kspencer avatar

kspencer

New Zenner

Join Date:
Jul 2011
Posts:
8
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Hi,

Using ZC 1.3.9h and USPS module RateV4.

I have a kit listed on my website (https://www.ecblend.com) that only fits inside of the Priority Mail Medium box(or larger).

When I go to checkout for this item it lists the small box and the medium box. I have tried setting the weight on this item to 20 pounds and it still shows the small box.

Is there a way to make an item only use a certain sized box? Or to make it if they order a certain quantity of an item 1-5 first class mail package, 6-10 use a priority mail small box, 10+ medium box etc?

I have tried using the default shipping module V1.5 that was just updated by ZC and that was worse. Quoting the customer $27 at the lowest price to ship.

I don't want the customers to be able to choose the small box on this item, and they will because it is the cheapest option, but it won't fit in this box.

Any help would be greatly appreciated.

Thanks in advance

PS: This is a live site, so if you create an account and TEST please use the word TEST for the first and last names

24 Jul 2011, 2:23 AM
#53
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

I'm not sure that Marco has the final version up yet with the instructions but it has volume based filtering. Requires a SQL update so that you can use digits 6-11 past the decimal in the weight field to contain the product volume.

It will require you to alter all of your product weights so that the weight also includes the cubic inch volumes.
The following volumes are coded into the file:

  • Sm Flat rate box = 67 cu inches
  • Med FR box = 515 cu inches
  • Large FR box = 792 cu inches
  • Large Video O-1096L = 95 cu inches
  • First Class = I don't think that a volume has been set but the weight max is 13 ounces. I coded the max volume for FirstClass to be 12.5 cu inches to make my products work.

Use a volume greater than 67 cu inches for the item that requires the Med FR box and all options less than the total product volume in the cart will be removed from the choices presented to the customer.

My example is that I know that 5 items will fit in a small FR box. 6-7 requires a Large Video box. 8 and up Med FR. Given that, I use 13 cu inches per item for those so that FirstClass cannot be chosen for a single item.

My last attempt to explain the detailed setup failed, so I'm reluctant to go much further until Marco has the latest update posted.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

25 Jul 2011, 1:28 PM
#54
jessica721 avatar

jessica721

New Zenner

Join Date:
Jun 2011
Posts:
14
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Marco B:

Just a quick update.

Weight filtering is going and someone is helping me test that feature.

I also implemented quote caching to speed stop the same quote from being retrieved more than once in a customers session. This should speed up going from 'checkout_shipping' to 'checkout_payment'.

I decided to hold off from releasing to get another option going.
Filtering shipping quotes by volume. (see attached)

To use this feature there is a small patch to apply to the shop database. It's harmless and doesn't change your data. It only converts the products_weight field to "double" precision and keeps all existing data. It allows me to store the volume in the additional digits.

I just thought of this - but if you use product attributes my volume handling code will work for that too, since an attribute can add extra weight to a product it can also add the extra volume simultaneously!

The beauty of this approach: I don't need to edit any core files or change the product admin section to implement it.

Here is the SQL Query you will need to run:

ALTER TABLE products CHANGE products_weight products_weight DOUBLE NOT NULL DEFAULT '0';
UPDATE products SET products_weight=ROUND(products_weight,5);
ALTER TABLE products_attributes CHANGE products_attributes_weight products_attributes_weight DOUBLE NOT NULL DEFAULT '0'; UPDATE products_attributes SET products_attributes_weight=ROUND(products_attributes_weight`,5);


I am gonna ask a stupid question since I am fairly new to zen-cart.  This is the exact problem I am having with my shipping module, but I do not know where to put this SQL, can you give me some direction please.  Greatly appreciated, I have been working on this module for over a few weeks, and that is the last problem I have left.  Thanks for your help  :smile:
25 Jul 2011, 2:35 PM
#55
jessica721 avatar

jessica721

New Zenner

Join Date:
Jun 2011
Posts:
14
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Marco B:

Here is the latest version of my module - this is still in the final testing stages but is almost ready for release. It has Separate handling fees for International and Domestic as an added bonus.

You will have to Uninstall/Install to get this going.

I believe the earlier test version might have had issues with domestic first class due to a technicality with the USPS API and changes in the way quotes are retrieved. :frusty:

Don't panic about First Class - Try this one!

I used this new file, and put in my weight configurations as needed, and I am only getting the medium flat rate option for all my options. I have it configured for:
8x5x1.5;1.40
11x8x5;+

and when I enter in one item that weights .68, I only get the option of medium and not a small flat rate box. Am I doing something wrong?

25 Jul 2011, 2:47 PM
#56
jessica721 avatar

jessica721

New Zenner

Join Date:
Jun 2011
Posts:
14
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

jessica721:

I used this new file, and put in my weight configurations as needed, and I am only getting the medium flat rate option for all my options. I have it configured for:
8x5x1.5;1.40
11x8x5;+

and when I enter in one item that weights .68, I only get the option of medium and not a small flat rate box. Am I doing something wrong?

This is what I am getting from the debug

USPS Debug Mode Enabled!

weight: 1.40lb, dimensions: 8x5x1.5
weight: +lb, dimensions: 11x8x5
Setting dimensions: l=11 w=8 h=5 for Weight: 4.36

USPS Debug Mode Enabled!

weight: 1.40lb, dimensions: 8x5x1.5
weight: +lb, dimensions: 11x8x5
Setting dimensions: l=11 w=8 h=5 for Weight: 4.36

25 Jul 2011, 2:54 PM
#57
marco_b avatar

marco_b

New Zenner

Join Date:
Dec 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

You have to enable filtering.
Debug mode should say something like:

Weight/Dimension Filtering Enabled.
Removed 'Priority Mail Large Flat Rate Box'
Removed 'Priority Mail Medium Flat Rate Box'

Also the example you provided has a much higher weight than you claimed for the item. Check your tare settings in Config>Shipping.

25 Jul 2011, 3:10 PM
#58
jessica721 avatar

jessica721

New Zenner

Join Date:
Jun 2011
Posts:
14
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Marco B:

You have to enable filtering.
Debug mode should say something like:

Also the example you provided has a much higher weight than you claimed for the item. Check your tare settings in Config>Shipping.

It was my tare settings, all fixed....thanks a million!!! :clap:

28 Jul 2011, 3:23 PM
#59
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Hello,
My client would like the following
"free freight" (first class USPS) but also allow the customer the option of paying for priority mail or UPS, or whatever service they desire. Is this possible and how would I go about this? Thanks.

29 Jul 2011, 6:13 AM
#60
marco_b avatar

marco_b

New Zenner

Join Date:
Dec 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

I would use the 'free shipping' module built into zencart and only enable quoting for priority mail within the usps module. As long as you factored the shipping price into the product price correctly your shouldn't bleed money.

There are limitations on the weight allowed with first class that you are probably aware of.

If you want the module to quote only first class (when it is available) as free it would need a simple patch in the usps module - an if statement in the right place that overrides the quoted price to 0.

Is this only for domestic or does it include international? That's the problem with free shipping. The actual price can fluctuate massively.