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,923

Results 81 to 100 of 336
28 Aug 2011, 11:57 PM
#81
bpoilspill avatar

bpoilspill

New Zenner

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

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

Actually it would be nice to be able to ship to Canada, although when I enable flat rate intl. boxes, they don't come up the intl. price for a Canada address.

29 Aug 2011, 12:14 AM
#82
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

Canada is treated as domestic under USPS and has Zip Codes like the rest of US.

Since I live in Australia I don't get first hand experience with that stuff so you'll have to confirm. I think the module is doing it right.

29 Aug 2011, 12:19 AM
#83
bpoilspill avatar

bpoilspill

New Zenner

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

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

Marco B:

Canada is treated as domestic under USPS and has Zip Codes like the rest of US.

Since I live in Australia I don't get first hand experience with that stuff so you'll have to confirm. I think the module is doing it right.

No it doesn't look like it. Check the USPS site here.

http://postcalc.usps.gov/

Destination to Canada, sets it to international flat boxes.

29 Aug 2011, 12:19 AM
#84
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

Check this thread on how to add a shipping zone if you want to restrict shipping to a certain areas.

http://www.zen-cart.com/forum/showthread.php?t=145011

Post #6 onward.

29 Aug 2011, 12:27 AM
#85
bpoilspill avatar

bpoilspill

New Zenner

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

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

Marco B:

Check this thread on how to add a shipping zone if you want to restrict shipping to a certain areas.

http://www.zen-cart.com/forum/showthread.php?t=145011

Post #6 onward.

Ok, thanks for that. Currently I'm only US, but would like to ship to Canada also, using flat rate of course. How would that be setup?

29 Aug 2011, 12:31 AM
#86
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, thanks for that. Currently I'm only US, but would like to ship to Canada also, using flat rate of course. How would that be setup?

Just tick the international flat rate options in the module config. If it doesn't work let me know.

29 Aug 2011, 12:36 AM
#87
bpoilspill avatar

bpoilspill

New Zenner

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

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

Marco B:

Just tick the international flat rate options in the module config. If it doesn't work let me know.

Yeah thats what I did originally and it didn't work. I turned off the USA zone, ticked the international, and setup a canada address, and it still offers domestic us rates.

Heres my site https://www.ponyrparts.com

29 Aug 2011, 12:43 AM
#88
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 couldn't replicate your problem!

29 Aug 2011, 1:02 AM
#89
bpoilspill avatar

bpoilspill

New Zenner

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

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

Yeah the estimator seems to work, but when I login to my account which by default uses a USA address, and THEN add an address for canada, it still uses the USA rates.

[IMG]http://img263.imageshack.us/img263/9118/unledqgw.jpg[/IMG]

Uploaded with ImageShack.us

29 Aug 2011, 1:34 AM
#90
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

This boggles the mind...
[IMG]http://img198.imageshack.us/img198/2705/shippingcanada.jpg[/IMG]

That is the latest version of my module on the development machine - supplied with your exact details.

I went to change the address from the default US address to the Canada you used above and it worked.

Are you in Canada already?

29 Aug 2011, 1:36 AM
#91
bpoilspill avatar

bpoilspill

New Zenner

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

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

What do you mean? It looks like it's displaying right on your site. :blink:

29 Aug 2011, 1:54 AM
#92
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

bpoilspill:

What do you mean? It looks like it's displaying right on your site. :blink:

Recheck the address you are using. Maybe you entered something wrong somewhere.

29 Aug 2011, 2:07 AM
#93
bpoilspill avatar

bpoilspill

New Zenner

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

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

Marco B:

Recheck the address you are using. Maybe you entered something wrong somewhere.

previously the zip code was l4w1s2 instead of 14w1s2, but I corrected it and it didn't make a difference.

[IMG]http://img202.imageshack.us/img202/8715/unlednlf.png[/IMG]

Uploaded with ImageShack.us

29 Aug 2011, 2:17 AM
#94
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

If you look at my screen capture again you'll notice it is formatted slightly different.

Mine shows "ON, Canada"
Are you using the right fields for everything?

29 Aug 2011, 2:35 AM
#96
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'm confused. If anyone has any ideas why it's working for me and not for bpoilspill let me know.

Enable xml debug mode so I can have at look at the request.

29 Aug 2011, 2:39 AM
#97
bpoilspill avatar

bpoilspill

New Zenner

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

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

Marco B:

I'm confused. If anyone has any ideas why it's working for me and not for bpoilspill let me know.

Enable xml debug mode so I can have at look at the request.

I left debug mode on till I get this figured out

it's very weird.

weight: +lb, dimensions: regular
Setting dimensions: l=12 w=12 h=12 for Weight: 0.1

Edit: It's almost as if the plugin just gets stuck, like sometimes it works and sometimes it doesn't.

29 Aug 2011, 2:47 AM
#98
bpoilspill avatar

bpoilspill

New Zenner

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

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

It just seems to start acting weird when you change the address at step 1 of checkout.

Edit: Like it seems to only work when,

1st. Change address

2nd. Go to cart change the quantity of something or add something

Then it updates with the right rates

It just doesn't seem like it changes rates from just switching addresses on step 1 of checkout.

29 Aug 2011, 2:56 AM
#99
bpoilspill avatar

bpoilspill

New Zenner

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

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

Yeah pretty sure it doesn't update the right rates by switching addresses on step 1 of checkout. I mean it's not really a big deal as 95% of the customers will only associate 1 address per account, but it should recalculate the rates when theres an address change, and not by just changing something in the cart.

29 Aug 2011, 4:45 AM
#100
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

Open usps.php (from v1.2) in an editor and go to line 602

Add 1 line:

global $order;

So it should look like:

  function _getCacheKey() {
	global $order;
    static $key;

It's the cache system not realising the address update. I will post an update shortly.

Now I wonder why I didn't find this on my test system!