LemonStand Forum: AJAX selection of country->state only works with MooTools and not JQuery - LemonStand Forum

Jump to content


Page 1 of 1
  • Cannot start a new Issue
  • You cannot reply to this issue

Report ID #17: AJAX selection of country->state only works with MooTools and not JQuery

#1 User is offline  
David Cole 

  • Member
  • Group: Members
  • Posts: 20
  • Joined: 19-July 11

Posted 23 July 2011 - 10:50 AM

Hi guys,

It looks like I found a bug in the Lemonstand JQuery libraries / implementation and I'd really appreciate it if you'd investigate this for me and see what you can do, as this will cause major issues if it's left as it is:

In the Checkout Billing Information page, Checkout Shipping Information page and Shopping Cart page (when trying to implement the shipping cost estimator), I've tried to implement the country and state drop down box exactly as in the documentation:

http://lemonstandapp..._step_checkout/
http://lemonstandapp...imator_feature/

When I change the country in the <select> menu, the states <select> menu should update accordingly via AJAX, but nothing happens. In the shopping cart I got no error in the javascript console, but equally no AJAX request seems to happen. In the checkout shipping pages when I try to do the same, I got an error message:

"Uncaught TypeError: Object #<HTMLSelectElement> has no method 'getForm'"

I tried using the Lemonstand MooTools library instead of the Lemonstand JQuery library and it magically started working, so it looks like there's something wrong with JQuery. (I embedded each in my pages using the method described on http://lemonstandapp..._and_css_files/) (I also totally disabled all of my own Javascript code before doing this test).

I've a tonne of functionality on my website reliant on JQuery, so using MooTools really isn't an option for me, and as my client is going to ship to multiple countries, with shipping costs to the US varying by State, I really need this functionality working. Any solution will be very gratefully received indeed and it would be seriously appreciated if you could treat this request with priority.

Many thanks,
David.


Page 1 of 1  
  • Cannot start a new Issue
  • You cannot reply to this issue

Replies (1 - 5)

#2 User is offline  
Eric Muyser 

  • Web Developer
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,317
  • Joined: 04-August 10
  • LocationVancouver, Canada

Posted 25 July 2011 - 02:29 PM

Updating status to: Unconfirmed

Hi David,

I assure you that the jQuery interface works properly with country/state switching. More than likely it is old MooTools code. Please see this post: http://forum.lemonst...ndpost__p__8123

Thanks

#3 User is offline  
David Cole 

  • Member
  • Group: Members
  • Posts: 20
  • Joined: 19-July 11

Posted 01 August 2011 - 03:05 AM

Thanks Eric - I'll give that a try :)

#4 User is offline  
David Cole 

  • Member
  • Group: Members
  • Posts: 20
  • Joined: 19-July 11

Posted 01 August 2011 - 05:05 AM

Yup - that works now. Thanks for your help - seriously appreciated.

I guess the documentation could use an update.

#5 User is offline  
Eric Muyser 

  • Web Developer
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,317
  • Joined: 04-August 10
  • LocationVancouver, Canada

Posted 02 August 2011 - 03:32 PM

Good to hear. We will update the docs.

#6 User is offline  
Eric Muyser 

  • Web Developer
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,317
  • Joined: 04-August 10
  • LocationVancouver, Canada

Posted 02 August 2011 - 03:32 PM

Moving to: Documentation


Page 1 of 1
  • Cannot start a new Issue
  • You cannot reply to this issue

0 User(s) are reading this issue
0 Guests and 0 Anonymous Users