-
Notifications
You must be signed in to change notification settings - Fork 867
WooCommerce compatability #40
Comments
Hi, This is the jQuery reference in when the WooCommerce plugin is disabled: When you enable the plugin, the reference above is replaced with: I am unsure of compatibility between WooCommerce and newer versions of jQuery. But if it is supported, I expect that there are ways in which you can limit what WooCommerce to do in relation to the enqueuing of scripts. |
Thanks, |
What exactly did you edit in class-wc-frontend-scripts.php? I'm getting errors on the custom jquery I've added to my site when woocommerce is enabled. I've tried to load my custom scripts on all pages except for woocommerce pages but am having no luck: function my_scripts() { Do you either have a solution to this approach? Or can yo provide me the code you removed from class-wc-frontend-scripts.php or a better way of overriding it? Thanks! |
Well, it's actually even simpler to be done. WooCommerce does a version check in class-wc-frontend-scripts.php (function check_jquery()) whether the enqueued jquery core script is at least at version 1.8. If not, it uses the one shipped w/ woocommerce. Now, to fix it just change the version on the script enqueuing part of your foundation theme, like in /library/enqueue-scripts.php and use the version string from /js/vendor/jquery.js (i.e. '2.1.1') @olefredrik you should use those version strings anyway. |
Hi,
Apologies, this is plugin related so feel free to ignore.
Activating WooCommerce causes the off-canvas navigation to become unresponsive ie. Clicking on the burger icon no longer triggers the slide in.
Here's a screenshot from Chrome Dev Tools
Any ideas?
The text was updated successfully, but these errors were encountered: