13 replies [Last post]
izi
izi's picture
Offline
Getting busy with the Ubercode.
Joined: 08/08/2007
Juice: 63
Was this information Helpful?

In IE6, the checkout page generates a javascript error when clicking the "What's the CVV?". I've confirmed the problem on both the site I'm working on and the ubercart.org livetest. Any ideas what's causing this? Seems to work fine in other browsers.

cosmo83@drupal.org's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik
Joined: 08/08/2007
Juice: 236
Re: Javascript error on checkout page

I had the same issue and was about to post.. Seems to be problem with IE6

cosmo83@drupal.org's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik
Joined: 08/08/2007
Juice: 236
Re: Re: Javascript error on checkout page

Ryan is back .. and so is this question.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Javascript error on checkout page

Not sure why it would generate an error... I thought this was fairly standard JS, but I'll try to review it if no one else knows why it should fail:

function cvv_info_popup() {
  var popup = window.open(base_path + '?q=cart/checkout/credit/cvv_info', 'CVV Info', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=480,height=460,left = 282,top = 122');
}

Maybe it could be the spaces for left and top in the last argument there? I've taken them out in my copy; try that in yours and see if it stops the bug. IE can be quite finicky with JS syntax.

cosmo83@drupal.org's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik
Joined: 08/08/2007
Juice: 236
That didnt work. Is there

That didnt work.
Is there any debugger on IE6 I can use?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: That didnt work. Is there

Fixed the issue by removing the space from the window name in the JS. Apparently changing "CVV Info" to "CVV_Info" let it work in IE.

cosmo83@drupal.org's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik
Joined: 08/08/2007
Juice: 236
Re: Re: That didnt work. Is there

Which line are you talking abt ?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: That didnt work. Is there

In the JS function I posted above in uc_payment.js.

cosmo83@drupal.org's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik
Joined: 08/08/2007
Juice: 236
Re: Re: Re: Re: That didnt work. Is there

Solved... Thanks

alien73's picture
Offline
Bug Finder
Joined: 11/10/2007
Juice: 450
Re: Re: Re: Re: Re: That didnt work. Is there

I'm getting the same error with IE 7. The checkout page refreshes and shows a java script error with each step. never did this before. I'm using Ubercart 1.3

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Re: Re: Re: That didnt work. Is there

This is a pretty old bug report... are you getting the exact same issue or just some new JS error? I just tested checkout on the Livetest in IE7 and had no difficulties here. Can you confirm if you have the errors there? If not, it might be some other module conflict.

alien73's picture
Offline
Bug Finder
Joined: 11/10/2007
Juice: 450
Re: Javascript error on checkout page

It refreshes the page and shows

First Name field is required.
Last Name field is required.
Street Address 1 field is required.
City field is required.
State field is required.
Zip Code field is required.
Phone Number field is required.
First Name field is required.
Last Name field is required.
Street Address 1 field is required.
City field is required.
State field is required.
Zip Code field is required.
Phone Number field is required.
You must select a shipping option before continuing.
Enter the owner name as it appears on the card.
You have entered an invalid credit card number.
The credit card you entered has expired.
You have entered an invalid CVV number.

With every step it refreshes and show the java error required or missing fields and when you finally get to submit order it just refreshs page and does nothing. Never had this problem before.

alien73's picture
Offline
Bug Finder
Joined: 11/10/2007
Juice: 450
Re: Re: Javascript error on checkout page

Firefox works great only IE 7.. I haven't tried IE6. Not sure which other module might be causing this??

alien73's picture
Offline
Bug Finder
Joined: 11/10/2007
Juice: 450
Re: Re: Re: Javascript error on checkout page

Ok.... I have it working but there is bug with IE explorer 7 when you have the Checkout pane display options turned on: Turned off it works fine just like you have setup with Livetest. I use firfox but there's still tons of people using IE explorer.

Use collapsing checkout panes with next buttons during checkout.

Collapse a pane when its next button is clicked.