Post by sferris » Thu Oct 20, 2011 9:35 pm

I'm trying to narrow down an issue getting rates between US and Canada. The cart will calculate US rates, no problem, but when a Canadian address is entered, it shows 'United Parcel Service' with no rate, when I try to continue, I get the error:

Error: Shipping method required!

I have a geo zone setup with US and Canada and have it set for the UPS module. I'm trying to contact UPS to make sure there isn't an issue with the rates, but I need a copy of the xml file to send them. Is there any way to output this? Or if you have something else I can try, I would greatly appreciate it. Thank you.

New member

Posts

Joined
Sat Jul 16, 2011 12:46 am

Post by Qphoria » Thu Oct 20, 2011 10:02 pm

there may have been errors in 1.4.9.3. I would recommend upgrading to 1.4.9.6 or at least grabbing the ups files from 1.4.9.6 and dropping them into 1.4.9.3

admin/controller/shipping/ups.php
admin/language/english/shipping/ups.php
admin/view/template/shipping/ups.tpl
catalog/model/shipping/ups.php
catalog/language/english/shipping/ups.php

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by sferris » Thu Oct 20, 2011 10:03 pm

Can't do any updating right now, but I will try the 1.4.9.6 files. Thanks!

New member

Posts

Joined
Sat Jul 16, 2011 12:46 am

Post by sferris » Thu Oct 20, 2011 10:13 pm

Nope, that didn't work. Bummer.

New member

Posts

Joined
Sat Jul 16, 2011 12:46 am

Post by Qphoria » Thu Oct 20, 2011 10:47 pm

Possible the geozone set up wrong for the customer you are checking out with on the ups extension
Or your site is not able to connect to UPS server. Is there a debug option in the 1.4.9.6 UPS module (can't remember) If so, Enable it and check the system error logs for the xml transaction details.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by sferris » Fri Oct 21, 2011 12:26 am

Here's what I'm getting:

2011-10-20 16:22:42 - PHP Notice: Undefined variable: request in /home/style/public_html/cart/catalog/model/shipping/ups.php on line 242
2011-10-20 16:22:42 - UPS DATA SENT:

It doesn't appear to be sending any data. I know its connecting to UPS because it is sending a response back and it is working for US to US addresses. Any more thoughts or ideas? Thank you so much for helping with this.

New member

Posts

Joined
Sat Jul 16, 2011 12:46 am

Post by sferris » Fri Oct 21, 2011 12:31 am

This is the code from lines 241-244 on /catalog/model/shipping/ups.php:

Code: Select all

				
if ($this->config->get('ups_debug')) {
  $this->log->write("UPS DATA SENT: " . urldecode($request));
  $this->log->write("UPS DATA RECV: " . $result);
}
It looks like this is the only spot $request is used or declared. Any ideas what the actual variable should be? Maybe $xml?

New member

Posts

Joined
Sat Jul 16, 2011 12:46 am

Post by sferris » Fri Oct 21, 2011 12:33 am

Okay, I'm answering my own stuff today - In line 242, it should be $xml, not $request. So, I have the xml code now. Any other ideas while I wait for UPS to get back with me?

New member

Posts

Joined
Sat Jul 16, 2011 12:46 am

Post by sferris » Fri Oct 21, 2011 1:03 am

I took the xml code and plugged it into a simple php script to see what response came back. I am getting a successful response from it, and when I checked the error logs, it does say success. So, I think the API is working, but OC isn't processing something. I have the following setup:

Countries: Canada, US, US Minor Outlying Islands

Zones: All zones related to the countries (I can verify this during checkout as the correct states/provinces appear)

Geo Zones: Shipping
All three countries are selected and 'All Zones' are selected for each one.

Under UPS I have 'Shipping' set for the Geo Zone.

New member

Posts

Joined
Sat Jul 16, 2011 12:46 am

Post by sferris » Fri Oct 21, 2011 9:03 pm

Anyone have any ideas? Has anyone else run into this issue?

New member

Posts

Joined
Sat Jul 16, 2011 12:46 am

Post by Qphoria » Fri Oct 21, 2011 10:58 pm

sferris wrote:Okay, I'm answering my own stuff today - In line 242, it should be $xml, not $request. So, I have the xml code now. Any other ideas while I wait for UPS to get back with me?
Ah good catch.. copy/paste strikes again!

For giggles, change the ups geozone to all zones and see if that works

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by sferris » Sat Oct 22, 2011 12:20 am

Nope. No luck.

New member

Posts

Joined
Sat Jul 16, 2011 12:46 am

Post by sferris » Wed Oct 26, 2011 1:22 am

Can anyone help with this? Surely I can't be the only person trying to ship from US to Canada with UPS.

New member

Posts

Joined
Sat Jul 16, 2011 12:46 am

Post by Qphoria » Wed Oct 26, 2011 2:21 am

It all works for everyone else :)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by sferris » Wed Oct 26, 2011 6:35 am

Finally figured it out - UPS Ground isn't an option from US to Canada, but UPS Standard is. I have both UPS Ground and UPS Standard selected and the cart now chooses Ground for US and Standard for Canada. Just an FYI for anyone else who needs this information.

New member

Posts

Joined
Sat Jul 16, 2011 12:46 am
Who is online

Users browsing this forum: No registered users and 1 guest