Shipping quotes not being returned upon upgrade to 1.5 UC

Posts: 2
Joined: 10/10/2008

I just upgraded site from UC 1.3 to 1.5, upon this upgrade the shipping quotes stop appearing, normally, when shipping address is entered, rates get calcuated. With 1.5, I don't even get rates returned. When I press Get Rates button, now I get the error
'You must select a shipping option before continuing.'

I just Installed 1.4 and its working fine, but 1.5 is not. I have the CIM module installed, which looks different unde 1.5 so I disabled that as a test, but still ssame option. I've tested this on my test and production servers.
1.3 and 1.4 work. 1.5 does not. Anyone seen anything like this?

I also am using latest Coupon module.

Jim

Posts: 5353
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Generally this seems to be working for me on the Livetest. Are you getting any JS errors on the checkout form that might halt the script's execution that does the shipping quote request?

Posts: 2
Joined: 10/10/2008

No Javascript errors at all, and its doing the same thing in FF and IE

Posts: 5353
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Can you duplicate this on the Livetest? If not, can you post a link to the malfunctioning page?

Posts: 9
Joined: 07/02/2008

This is a live site having the problem http://www.smoothshoponline.com/ with the quote on the cart page

Posts: 5353
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Hmm... well, when I went to that site and put in a shipping address, shipping quotes appeared just fine. Puzzled

EDIT: Ahh, the cart page. That's different from the original post.

Posts: 96
Joined: 10/29/2007
Bug Finder

I upgraded from 1.4 to 1.5 again and am tyring to track this error down. I turned off the more unusally checkout moudles and panes (coupon, cim, and flatrate). I still get no quotes. I do get a JS error on the page. This is running on my test box now, but I had same issue when I upgraded to 1.5 on production, and have moved it back to 1.3. 1.4 works fine.

Here's what I get.

Line 13, Char 5, getElementbyID is null or not an object

Here is the view source with some error stuff in it.

Drupal.extend({ settings: { "thickbox": { "close": "Close", "next": "Next \x3e", "prev": "\x3c Prev", "esc_key": "or Esc Key", "next_close": "Next / Close on last", "image_count": "Image !current of !total" }, "base_path": "/", "uc_quote": { "progress_msg": "Receiving quotes:", "err_msg": "\x3cp\x3eThere were problems getting a shipping quote. Please verify the delivery and product information and try again.\x3cbr /\x3e\nIf this does not resolve the issue, please call in to complete your order.\x3c/p\x3e\n" }, "googleanalytics": { "trackOutgoing": 1, "trackMailto": 1, "trackDownload": 1, "trackDownloadExtensions": "7z|aac|avi|csv|doc|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xml|zip", "LegacyVersion": 0 } } });
$(function() {
setQuoteCallbacks("572%5ENike+Plus+Ipod+kit%5EIPODNIKEKIT1%5E%5E1%5E29%5E35.95%5E1%5Ea%3A4%3A%7Bs%3A10%3A%22attributes%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22model%22%3BN%3Bs%3A9%3A%22shippable%22%3Bs%3A1%3A%221%22%3Bs%3A6%3A%22module%22%3Bs%3A10%3A%22uc_product%22%3B%7D");
var quoteButton = $("input:radio[@name=quote-option]").click(function() {
var quoteButton = $(this);
var label = quoteButton.parent("label").text().split(":", 2)[0];
quoteButton.end();
var rate = $("input:hidden[@name='rate[" + quoteButton.val() + "]']").val();
set_line_item("shipping", label, rate, 1, 1, false);
if (window.getTax) {
getTax();
}
else if (window.render_line_items) {
render_line_items();
}
}).filter("[@value=---0]").click();
var quoteDiv = $("#quote");
if (quoteDiv.length && $("#quote input[@name=quote-form]").length == 0) {
quoteDiv.append("");
}
});

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

I think this might be the same conflict between jquery_update and Ubercart 1.5 that others have seen. Can you turn off jquery_update temporarily and see if that fixes things? Note that you'll have to restore the default Drupal jquery.js to /misc, since you had to overwrite that as part of the jquery_update install.

--

<tr>.

Posts: 96
Joined: 10/29/2007
Bug Finder

I'll give that a try in a couple of hours. I'm away from dev machines now. Thanks for the idea, and I did upgrade the drupal and the latest jquery, so this could be it.
Jim

Posts: 24
Joined: 01/20/2008

I had the same problem. At first I thought it was the coupon module, but then read this post and realized it might be the upgrade.

I removed jquery update (including replacing jquery.js file in misc folder. And now it seems to be working fine.

Connie

Posts: 96
Joined: 10/29/2007
Bug Finder

I also just removed jquery.update (I had to disable cluetip and avatar selection) and I replaced the jquery.js in misc with the default one that came with the Drupal 5.11

I still have same error - here is view source from checkout page.

Drupal.extend({ settings: { "thickbox": { "close": "Close", "next": "Next \x3e", "prev": "\x3c Prev", "esc_key": "or Esc Key", "next_close": "Next / Close on last", "image_count": "Image !current of !total" }, "base_path": "/", "uc_quote": { "progress_msg": "Receiving quotes:", "err_msg": "\x3cp\x3eThere were problems getting a shipping quote. Please verify the delivery and product information and try again.\x3cbr /\x3e\nIf this does not resolve the issue, please call in to complete your order.\x3c/p\x3e\n" }, "googleanalytics": { "trackOutgoing": 1, "trackMailto": 1, "trackDownload": 1, "trackDownloadExtensions": "7z|aac|avi|csv|doc|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xml|zip", "LegacyVersion": 0 } } });
$(function() {
setQuoteCallbacks("567%5ECeladon+Plus+Multivitamin%5EVIT031%5EDouglas+Labs%5E1%5E10%5E39.95%5E1.3%5Ea%3A4%3A%7Bs%3A10%3A%22attributes%22%3Ba%3A0%3A%7B%7Ds%3A5%3A%22model%22%3BN%3Bs%3A9%3A%22shippable%22%3Bs%3A1%3A%221%22%3Bs%3A6%3A%22module%22%3Bs%3A10%3A%22uc_product%22%3B%7D");
var quoteButton = $("input:radio[@name=quote-option]").click(function() {
var quoteButton = $(this);
var label = quoteButton.parent("label").text().split(":", 2)[0];
quoteButton.end();
var rate = $("input:hidden[@name='rate[" + quoteButton.val() + "]']").val();
set_line_item("shipping", label, rate, 1, 1, false);
if (window.getTax) {
getTax();
}
else if (window.render_line_items) {
render_line_items();
}
}).filter("[@value=---0]").click();
var quoteDiv = $("#quote");
if (quoteDiv.length && $("#quote input[@name=quote-form]").length == 0) {
quoteDiv.append("");
}
});

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

If you post a link I can take a look.

--

<tr>.

Posts: 96
Joined: 10/29/2007
Bug Finder

I did some more testing, and it IS the jqery.js. It must have been cached earlier. I was able to re-activate everything, even the jquery update module, I just had to leave the \misc jquery.js as teh original. So shipping costs are now working.

Thanks for the help. Now I just need to find out what we need to do about the jquery update Smiling

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

I think Lyle needs to rework the changes he made to the Ubercart .js in 1.5, because if it fails with jquery_update it's also going to fail under D6. I'll post a detailed bug report when I get some time.

--

<tr>.

Posts: 96
Joined: 10/29/2007
Bug Finder

Thanks TR - and your're right, the new JQuery.js works fine with 1.3 and 1.4 UC, just not 1.5

Posts: 4
Joined: 10/05/2008

Ive got this issue as well.

Ive replaced the jquery.js in /misc with the one from 6.4

I dont understand what the "jquery update" is and how to remove it...

Noob help anyone?

Posts: 24
Joined: 01/20/2008

Go into modules, and unclick the jquery update box. Also check your status report and make sure it is not giving a jquery error - and yes, replace the jquery.js file with the one that came with your upgrade.

Posts: 24
Joined: 01/20/2008

I had the shipping quotes working yesterday after uninstalling jquery update. But now I added a non-shippable product download, and I'm back to the java error again.

Is there any way I can uninstall the drupal update without starting my site all over again!!!!!

Posts: 96
Joined: 10/29/2007
Bug Finder

Hi, you can just unzip and copy the ubercart 1.4 on top of your 1.5 and everything will work fine. I've done that.

also, I found that I did not need to uninistall the jquery_update module. I just had to replce th jqery.js in /misc. However my jquery_update (which was needed by me for cluetip and avatar_selection modules) does not work with the old jquery file.