5 / 5
Nov 2010

I'm having a problem that has semi been described by other members, but not entirely.



My website is: http://www.jennypho.com/



You can view a sample menu item at: http://www.jennypho.com/menu/fried-rice-dishes/3f-fried-tofu-fried-rice.html



In Firefox 3.6.12, the modal window for buy and checkout work. Older versions of firefox appear to not be working.



In every other browser, when you click on buy item, it reverts to the non-js method. However when one goes to checkout, there's nothing in their basket.



Help please??

  • created

    Nov '10
  • last reply

    Nov '10
  • 4

    replies

  • 1.0k

    views

  • 2

    users

  • 4

    links

please note that I am self-hosting this site as well, php is current v5 as is mySQL (not that it would matter)

Also... which is very strange, the checkout button works on all pages correctly (with modal window).

Ok so .... I swapped from a2hosting to hostgator, and it appears to be working. I had about 54 websites on a shared plan, of which ~20 were Wordpress sites. It appears that the abundance of sites was causing the server to go OOM, maybe, causing the JS not to 'fire'.

The usual problem we see with WordPress sites where nothing at all happens when you click a cart button is caused by the WP software adding extra "quotes" in the box.js line of your View Cart code, like so:



<script src='http://www.e-junkie.com/ecom/box.js' type="'text/javascript'"></script>



Notice the nested, single-inside-double quotes in type="'text/javascript'" -- changing that to type='text/javascript' or type="text/javascript" fixes that problem.



BTW, you might be interested in the new WP E-junkie plugin, which automatically inserts the proper View Cart scripting code in every page to avoid the problem above, and it streamlines the process of adding actual cart buttons to your WP site as well:

http://wpejunkie.com/