error: Javascript must be enabled to view the order total preview.

Posts: 12
Joined: 04/07/2008
Internationalizationizer

Okay i got this wonderfull messages for my config of the shipping:
"Javascript must be enabled to view the order total preview."
but ehem i got my javasctipt on (and the payment options work just as its supposed to do - with js call n all)

so ehem i guess theres an error somewhere else - but this error msg reminds me of "theres an error somewhere between line 2 and 3231424" Eye-wink

Posts: 12
Joined: 04/07/2008
Internationalizationizer

figured this out by myself...
Dont (DONT!) have any js errors anywhere in you site - it will screw with the ajax calls

/morten.dk

Posts: 12
Joined: 01/20/2008

Hi there,

I'm facing the same problem since I've upgraded to 1.4.

I don't see any Javascript errors and I don't realy know where to start. Can you point me in the right direction?

With best regards,

Fred

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

Can you post a URL so we can take a look?

--

<tr>.

Posts: 12
Joined: 01/20/2008

62.163.64.160/lambo

Thanks in advance!

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

Yes, there's a JavaScript error on that page. What version of Drupal and Ubercart are you using? As far as I know, s_street2 has *never* appeared in uc_taxes.js - have you modified or patched the taxes module? What contributed modules do you have installed, could one of them be the culprit? The uc_taxes module had some changes between UC 1.3 and UC 1.4, so perhaps one of your contributed modules is misbehaving with UC 1.4 ...

s_street2 has no properties
getTax()uc_taxes.js (line 79)
(no name)()uc_taxes.js (line 13)
e()jquery.js (line 11)
e()jquery.js (line 11)
e([function(), function(), function(), 13 more...], function(), undefined)jquery.js (line 11)
e()jquery.js (line 11)
[Break on this error] + '";s:16:"delivery_street2";s:' + s_street2.length + ':"' + encodeURICompon...

--

<tr>.

Posts: 12
Joined: 01/20/2008

Thanks for your very quick reply.

I'm using Drupal 5.9 and the latest Ubercart release (1.4, just out of the box) and didn't modify or patch the taxes module.

There is one contributed module I'm using: uc_legalaspects.

With best regards,

Fred

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

Looks like it's working on your site now? I see s_street2 *does* now show up in the 1.4 release of uc_taxes.js. But it looks like you've removed the street2 textfield from your delivery and billing address forms? If the street2 textfield doesn't exist, then the s_street2 variable will be null and you'll get that JavaScript error. If the street2 textfield is simply empty, that shouldn't happen.

--

<tr>.

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

Ah, I think I see the problem. If you turn off the "Street address 2" field at admin/store/settings/checkout/edit/fields then the JavaScript will fail like you're seeing. This seems to be a bug in the 1.4 version of uc_taxes.js, which should be testing for the existence of the field before using it.

--

<tr>.

Posts: 12
Joined: 01/20/2008

Thanks a lot for pointing me in the right direction! It's a bug. I have disabled Street address 2 and it should be tested like you said.

I wasn't able to see where it went wrong because my Firebug was misbehaving. Sad

With best regards!

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

TR... you rock. Thanks for figuring this one out! We'll be getting this into a 1.5 release with a few other fixes by the end of the week.

Posts: 6
Joined: 08/07/2008

Hey guys

I'm having the same problem, but address 2 is enabled. The only additional module I have for UC is discounts. The staging site is at http://tcw.southernwoodexpress.com. One product - the event on the home page.

I'd appreciate if you can tell me if there is an error on the page. I can't see it. Tested so far in Safari and FF2.

Thanks
Dave

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

Hey Dave, are you running the 1.5 version of UC?

Posts: 6
Joined: 08/07/2008

Sticking out tongue

Now I am and it's fine... I was wondering about it because I had default address set up, so wasn't sure how 1.5 had changed the preview code.

Thanks!
D