Wordpress / woocommerce
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

We have an online retails shop that has variations on products. The add to cart button is visible 95% of the time but it seems that when people access our site from a work computer, the add to cart button isn't showing. it's only from work based computers so I'm guessing they are blocking something that is preventing it from showing. UK based retail website - www.justpersonalisedprints.co.uk

Wordpress version is 3.7.1
Woocommerce version is 2.0.20

Crowdsource coding tasks.

1 Solution


I made some crossbrowser test, and I verified that the add to cart button doesn't appear on Internet Explorer 8 due to javascript errors.

The problem is jQuery 2.0, if you want to support IE 8 and older you must use jQuery 1.x, jQuery 1.11 is the last.

We are using a plugin, JQuery updater that automatically updates to the latest version. do you know how to go back to the version you suggested and also if there will be any impact on any other areas if we do? Thanks so far though
awaterman almost 5 years ago
I do not recommend to use jquery updater, because before updating a library you should test it. Anyway, jQuery 1.11 is not an old version (it has been released 24/01/2014).
jQuery 1.11 is the same version of jQuery 2.11, jQuery 1.10 is the same version of jQuery 2.0.
The difference between jQuery 1.x and jQuery 2.x is simply the browsers support, jQuery 1.x support virtually all browsers, jQuery 2.x support only latest browsers and 2 versions back.
jQuery 2.x is very light. jQuery 1.x is very heavy, but the API are the same.
Stefano Balzarotti almost 5 years ago
I don't really understand JQuery and what it does exactly. Im looking through google as we speak and struggling to understand how to get to 1.11 version? I'll award bounty shortly too
awaterman almost 5 years ago
jQuery is a javascript framework, it's a very powerfull library, probably it is used as a dependency by some plugins. You can download jQuery at this address: http://code.jquery.com/jquery-1.11.0.min.js To change version: https://gist.github.com/slav123/6508035
Stefano Balzarotti almost 5 years ago
Do i just cut and paste the info to the functions.php? Where do i put the downloaded jquery?
awaterman almost 5 years ago
Put the jquery-1.11.0.min.js library in a folder, copy the path, example \js\jquery-1.11.0.min.js in functions put this code: wpderegisterscript('jquery'); wpregisterscript('jquery', '\js\jquery-1.11.0.min.js', false, '1.11.0'); Alternative, you can use google ajax library absolute url: wpregisterscript('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js', false, '1.11'); Reference: http://www.ericmmartin.com/5-tips-for-using-jquery-with-wordpress/
Stefano Balzarotti almost 5 years ago
Thank you, i'll give it a go and hope for the best
awaterman almost 5 years ago
Do i need to put anything around the code as it makes the website not work when changed?
awaterman almost 5 years ago
Nothing, now it works.
Stefano Balzarotti almost 5 years ago