• Store
  • Blog
  • Forum
  • Contact

  • FAQ
  • Members
  • Register
  • Login
  • Magento forum ‹ Magento Extensions and Themes of aheadWorks ‹ iPhone Theme ‹ User contributions

Fix currencyDropdown[0] is undefined Javascript Error

If you have a customization for the iPhone Theme which you wish to share with other people - post it in this forum. Localizations and code updates are highly appreciated here.
Post a reply
2 posts • Page 1 of 1

Fix currencyDropdown[0] is undefined Javascript Error

Postby raphaelpetrini » Thu Oct 10, 2013 2:39 pm

Magento version: 1.8.0.0
AW Mobile version: 1.6.3
AW All version: 2.2.1

First, please note that I have no currency dropdown on my website.

I got this error when clicking on a parent category in the navigation menu.

currencyDropdown[0] is undefined in /js/aw_mobile/navigation.js (line 615).

It seems like a currencyDropdown object was indeed created but was empty so I replaced the faulty line:

Code: Select all
if(currencyDropdown) {


By this one:

Code: Select all
if(currencyDropdown.length > 0) {


Any question, feel free to ask ;)

Cheers,

Raph
raphaelpetrini
 
Posts: 7
Joined: Wed May 02, 2012 6:26 am
  • Private message
Top

Re: Fix currencyDropdown[0] is undefined Javascript Error

Postby Artyom K » Fri Oct 11, 2013 6:15 am

Good job! :)
User avatar
Artyom K
 
Posts: 635
Joined: Fri Dec 07, 2012 8:00 am
  • Private message
Top

Post a reply
2 posts • Page 1 of 1

Return to User contributions

Who is online

Users browsing this forum: No registered users and 0 guests

  • Magento forum
  • The team • Delete all board cookies • All times are UTC

Magento Enterprise extensions | Buy Magento templates

© 2011 aheadWorks Magento Extensions
Your world of Magento extensions and themes!