Click to calculate shipping Problem

Posts: 32
Joined: 03/17/2008

Hello,

Thanks for the wonderful product.

I am having an issue that is blowing my mind. I am using Ubercart 5.x-1.0-rc2. Here are the steps I am following:

1. Add an item to my cart.
2. Go to checkout.
3. Enter billing address and clicking the check box that sets billing == shipping.
4. I think get a loading circle in the shipping window and two options show up. One USPS and another Flat rate.

Okay. Everything has worked perfectly. However, if I now click on "Click to calculate shipping"... instead of just that shipping area refreshing, the whole page refreshes. I now get a number of errors at the top of the page telling me my CC# is not valid, bla bla bla.

If I then scroll down to the shipping area, I now only have the "Click to calculate shipping" button, and no shipping options are displayed. If I click the button, the page refreshes, CC# errors, no shipping options, again and again.

This is happening in Firefox, Safari, and IE7. HELP!

Any help anyone could give would be GREATLY appreciated. Thanks!

Posts: 2008
Joined: 08/07/2007
AdministratoreLiTe!

That's very odd for just the button to not work. It sounds like the jQuery command to link the functions to the button didn't work. If you change the shipping postal code, does the shipping quote refresh like it's supposed to?

Check your copy of uc_quote.js for the following:
input[@id*=quote-button]
You should see it near the top, in the first function.

Posts: 32
Joined: 03/17/2008

Yes, if I change the zip code on the shipping fields, then the shipping options show up.

Another yes to the input[@id*=quote-button] in uc_quote.js. However, here is the HTML that makes up the "Click to calculate shipping" button:

<fieldset id="quotes-pane" class=" collapsible"><legend>Calculate shipping cost</legend><div class="description">Shipping quotes are generated automatically when you enter your address and may be updated manually with the button below.</div><input type="submit" name="op" value="Click to calculate shipping"  class="form-submit btn" />
<input type="hidden" name="panes[quotes][page]" id="edit-panes-quotes-page" value="checkout"  />

<input type="hidden" name="panes[quotes][uid]" id="edit-panes-quotes-uid" value="1"  />
<div id="quote"></div></fieldset>

Unless I am mistaking, the button should probably have an id of quote-button?

Posts: 32
Joined: 03/17/2008

I have found the cause of this issue. I was doing an override in my template.php file and it was causing problems with this button. Thanks for the help. Smiling