= fn(n){n xor 0xFFFF004B eq 0×0 ? n : fn(n – 0×1)}


Virtuemart: Ajax Effect on IE 8 Fix List based on Virtuemart 1.1.3(stable release since 22, Jan)

Virtuemart utilizes Ajax mostly by mooTools. It works fine in many browsers except microsoft newly released browser IE 8. Especially when user try to add a product to shopping cart using Ajax, the mooPrompt (a pop-up window) fails, and nothing happen on that page… Maybe the first thing you are about to do is to upgrade mooTools. Yes, that’s seems a great idea, however mooTools’s updates from 1.11 to 1.21 is totally a nightmare for developer. Many things change, you have to revise the code manually for Virtuemart. 

The following files should be updated (if you want to satisfy IE 8 users):

  • \components\com_virtuemart\js\mootools\mootools-release-1.11.js  (update to 1.21)
  • \components\com_virtuemart\js\mootools\mooPrompt.js (you have to revise it manually. Should change a lot of JS class definitions in accordance with mootools 1.21 syntax)
  • \components\com_virtuemart\js\slimbox (update to slimbox for mootools 1.21)
  • \components\com_virtuemart\themes\default\theme.js (you have to revise it manually. Should fix a bug on line 59, change to var timeoutID = setTimeout( ‘document.boxB.close()’, 3000 );)

Besides updating corresponding files, you can also disable Ajax function on the administration page. Or.. Wait until next stable release of VM). If you need the files above, just leave me a message, and I will pack them up for you.

Tags: , , ,


7 Responses to “Virtuemart: Ajax Effect on IE 8 Fix List based on Virtuemart 1.1.3(stable release since 22, Jan)”

  1. tim says:

    So… how do I disable Ajax function?

  2. Koumei says:

    it’s easy, but seems it hides deep in the configuration steps. Go to administration page of virtuemart, then click menu “Admin – Configuration” on left panel. Select “site” tab, then you will find a link “Configuration” on the item “select the theme for your shop” in group “layout”. finally, change an option of “Use Ajax to add, update or delete products from the cart?“ .

  3. tim says:

    Never expected anyone will actually reply with the correct solution. Thank you very much!!!!!

  4. Leah says:

    What do you think would be a perfect shopping cart gallery for a website selling furniture products around 500 or so?

  5. Koumei says:

    to leah: I think Virtuemart is my choice. But what I think is not that virtuemart can easily handle large amount of stocks, but because I am familiar with virtuemart. :)

  6. obie1 says:

    I am using the latest VM and it looks like it still has mootools 1.11. Would you please send the needed files? Thanks

  7. Koumei says:

    to obie1:
    Here are the links of the needed files:
    http://blog.koumei.net/theme.7z
    http://blog.koumei.net/mootools-1.21.7z

    un-7zip to any folder. replace /mootools folder in /components/com_virtuemart/js/
    replace theme.js in /components/com_virtuemart/themes/default/

    **PLEASE NOTE THAT BEFORE YOU REPLACE THE FILE/FOLDERS SHOULD YOU TAKE A SAFE BACKUP !!

Leave a Reply

Profile

  • Koumei Deng's Facebook profile


Submit Your Site To The Web's Top 50 Search Engines for Free!