Forums / Built-in Shipping and Payment Modules / No UPS Ship methods appear after adding a country

No UPS Ship methods appear after adding a country

Locked

Views: 3,171

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
19 Feb 2009, 9:15 PM
#1
mandm avatar

mandm

New Zenner

Join Date:
Jan 2006
Posts:
32
Plugin Contributions:
0

No UPS Ship methods appear after adding a country

I attempted to add a Canada as a shipping destination in Zen version 1.3.7. To do this, I added Canada to zen_countries (38), and I added all the provinces to the zen_zones table. I also setup the GST tax for all Canada zones. UPS and Free Shipping are the only shipping modules I have enabled. When I try to check out with a Canadian address the UPS box appears under shipping method, but there are no options under it (they do appear for US orders). If I click "continue" the page refreshes with no errors, but I cannot advance to the payment page. What am I missing?

20 Feb 2009, 7:40 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: No UPS Ship methods appear after adding a country

In phpMyAdmin ...

Do a search in your countries table for countries_id = 38 ... what do you get?

Do a search in your zones table for zone_country_id = 38 ... what do you get?

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!

20 Feb 2009, 8:37 PM
#3
mandm avatar

mandm

New Zenner

Join Date:
Jan 2006
Posts:
32
Plugin Contributions:
0

Re: No UPS Ship methods appear after adding a country

Ajeh:

In phpMyAdmin ...

Do a search in your countries table for countries_id = 38 ... what do you get?

Do a search in your zones table for zone_country_id = 38 ... what do you get?

Countries w/ country_id=38
38 Canada CA CAN 1

Zones w/ country_id=38
66 38 AB Alberta
67 38 BC British Columbia
68 38 MB Manitoba
69 38 NF Newfoundland
70 38 NB New Brunswick
71 38 NS Nova Scotia
72 38 NT Northwest Territories
73 38 NU Nunavut
74 38 ON Ontario
75 38 PE Prince Edward Island
76 38 QC Quebec
77 38 SK Saskatchewan
78 38 YT Yukon Territory

21 Feb 2009, 2:52 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: No UPS Ship methods appear after adding a country

Check the address_format_id the default for Canada is 2 ...

Do any countries work on the shipping?

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!

22 Feb 2009, 2:25 AM
#5
mandm avatar

mandm

New Zenner

Join Date:
Jan 2006
Posts:
32
Plugin Contributions:
0

Re: No UPS Ship methods appear after adding a country

Ajeh:

Check the address_format_id the default for Canada is 2 ...

Do any countries work on the shipping?

The only other country I am using is US and the shipping works for US.

22 Feb 2009, 3:41 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: No UPS Ship methods appear after adding a country

Have you an URL where we could perhaps peek at this? :smile:

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!

22 Feb 2009, 12:12 PM
#7
mandm avatar

mandm

New Zenner

Join Date:
Jan 2006
Posts:
32
Plugin Contributions:
0

Re: No UPS Ship methods appear after adding a country

Ajeh:

Have you an URL where we could perhaps peek at this? :smile:

http://fieldforest.net/store

22 Feb 2009, 3:06 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: No UPS Ship methods appear after adding a country

If I use Canada for my address:

Test CA First Test CA Last
123 Somewhere
Toronto, ON M4B 1B4
Canada

I get on UPS shipping:

Shipping Method:
This is currently the only shipping method available to use on this order.
United Parcel Service (1 x 5.50lbs)

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!

22 Feb 2009, 3:09 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: No UPS Ship methods appear after adding a country

Aha! A clue ...

What Payment Modules are installed?

Do you have Zones set on the Payment Modules?

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!

23 Feb 2009, 1:20 PM
#10
mandm avatar

mandm

New Zenner

Join Date:
Jan 2006
Posts:
32
Plugin Contributions:
0

Re: No UPS Ship methods appear after adding a country

Ajeh:

Aha! A clue ...

What Payment Modules are installed?

Do you have Zones set on the Payment Modules?

Presently I have freeshipper and ups installed. For ups Shipping Zone is set to --none--. If I understand correctly, setting Shipping Zone to --none-- will apply ups to all zones. Correct?

23 Feb 2009, 4:15 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: No UPS Ship methods appear after adding a country

Zone set to none means all that are defined ...

However, I am also wanting to know what Zones, if any are on the Payment Modules ...

What happens if you switch to Classic Template? Does the checkout work?

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!

23 Feb 2009, 6:14 PM
#12
mandm avatar

mandm

New Zenner

Join Date:
Jan 2006
Posts:
32
Plugin Contributions:
0

Re: No UPS Ship methods appear after adding a country

Ajeh:

Zone set to none means all that are defined ...

However, I am also wanting to know what Zones, if any are on the Payment Modules ...

What happens if you switch to Classic Template? Does the checkout work?

I'm only using the cc payment module and Payment Zone is set to --none--.

23 Feb 2009, 6:28 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: No UPS Ship methods appear after adding a country

This is weird ...

Could you drop me a PM with access to your Admin that I could look to see if there is anything obvious here that is out of wack? :unsure:

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!

23 Feb 2009, 7:27 PM
#14
mandm avatar

mandm

New Zenner

Join Date:
Jan 2006
Posts:
32
Plugin Contributions:
0

Re: No UPS Ship methods appear after adding a country

Ajeh:

This is weird ...

Could you drop me a PM with access to your Admin that I could look to see if there is anything obvious here that is out of wack? :unsure:

I would like to, but I can't without my client's OK. I was hoping that there was something obvious that I missed in the shipping module. I will try to trouble shoot this some more on my own, and if I still can't get resolution I will get permission from the client to give you the admin login.

23 Feb 2009, 7:34 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: No UPS Ship methods appear after adding a country

Get the Debug Tool from the Free Add Ons and see if it shows anything that might be wrong ...

I am suspecting something in the database ... but it could be a code issue ... :unsure:

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!

23 Feb 2009, 10:54 PM
#16
mandm avatar

mandm

New Zenner

Join Date:
Jan 2006
Posts:
32
Plugin Contributions:
0

Re: No UPS Ship methods appear after adding a country

Well, I have it working, but I'm not sure that it is functioning as expected.

Initially my UPS services were set to: 1DA, 2DA, 3DS, and GND

In the ups module I sent the the parameters passed to UPS to a file for both US and Canada:

US-
[sort_order] => 300
[tax_class] => 1
[tax_basis] => Shipping
[_upsProductCode] => GNDRES
[_upsOriginPostalCode] => 54157
[_upsOriginCountryCode] => US
[_upsDestPostalCode] => 54956
[_upsDestCountryCode] => US
[_upsRateCode] => Regular+Daily+Pickup
[_upsContainerCode] => 00
[_upsPackageWeight] => 2
[_upsResComCode] => 1

Canada-
[sort_order] => 300
[tax_class] => 1
[tax_basis] => Shipping
[_upsProductCode] => STD
[_upsOriginPostalCode] => 54157
[_upsOriginCountryCode] => US
[_upsDestPostalCode] => T1L1B3
[_upsDestCountryCode] => CA
[_upsRateCode] => Regular+Daily+Pickup
[_upsContainerCode] => 00
[_upsPackageWeight] => 2
[_upsResComCode] => 1

Notice that the _upsProductCode for US is GNDRES and for Canada it is STD. The same is true for the quoted values returned from UPS:

US-
[1DM] => 52.32
[1DA] => 21.01
[1DP] => 19.04
[2DA] => 12.32
[3DS] => 8.33
[GND] => 6.92

Canada-
[WXS] => 77.87
[XPD] => 75.70
[STD] => 21.89

When I saw that STD was being requested from UPS I checked the box in the ups module indicating that I wanted it as one of the services. Now "Canada Standard" appears as the only shipping option. Is this functioning the way one should expect? I would think I should still get the other shipping options for Canada. When STD is not enabled why is it requested from UPS and then not displayed as a shipping option? Do I have something configured incorrectly or is this the anticipated function? Is GND not allowed as a shipping option to Canada?

23 Feb 2009, 11:00 PM
#17
mandm avatar

mandm

New Zenner

Join Date:
Jan 2006
Posts:
32
Plugin Contributions:
0

Re: No UPS Ship methods appear after adding a country

I found this too in the ups module (line 121):

if ( (zen_not_null($method)) && (isset($this->types[$method])) ) {
  $prod = $method;
  // BOF: UPS USPS
} else if ($order->delivery['country']['iso_code_2'] == 'CA') {
  $prod = 'STD';
  // EOF: UPS USPS
} else {
  $prod = 'GNDRES';
}

I guess it explains the behavior, but I don't understand the reason.

23 Feb 2009, 11:12 PM
#18
ajeh avatar

ajeh

Oba-san

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

Re: No UPS Ship methods appear after adding a country

I have all checkboxes and on UPS for the same weight and zip code I get:

United Parcel Service (1 x 2.00lbs)
Worldwide Saver $81.81
Worldwide Expedited $79.44
Canada Standard $22.92

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!