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.
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.
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
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
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.
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.
This is the code from lines 241-244 on /catalog/model/shipping/ups.php:
It looks like this is the only spot $request is used or declared. Any ideas what the actual variable should be? Maybe $xml?
Code: Select all
if ($this->config->get('ups_debug')) {
$this->log->write("UPS DATA SENT: " . urldecode($request));
$this->log->write("UPS DATA RECV: " . $result);
}
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.
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.
Ah good catch.. copy/paste strikes again!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?
For giggles, change the ups geozone to all zones and see if that works
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.
Who is online
Users browsing this forum: No registered users and 1 guest