I was able to track this down to the live function no longer being supported by jquery:
https://api.jquery.com/live/
As of jQuery 1.7, the .live() method is deprecated. Use .on() to attach event handlers. Users of older versions of jQuery should use .delegate() in preference to .live().
I’ve updated the woocommerce-debug-bar.js code to utilize the on() event handler, below is the updated code:
jQuery( document ).ready( function( $ ) {
$(‘#wc-debug-bar-show-products’).show();
$(‘#wc-debug-bar-products’).hide();
$(‘#wc-debug-bar-show-products’).on(‘click’, function() {
$(‘#wc-debug-bar-show-products’).hide();
$(‘#wc-debug-bar-hide-products’).show();
$(‘#wc-debug-bar-products’).show(‘fast’);
return false;
});
$(‘#wc-debug-bar-hide-products’).on(‘click’, function() {
$(‘#wc-debug-bar-hide-products’).hide();
$(‘#wc-debug-bar-show-products’).show();
$(‘#wc-debug-bar-products’).hide(‘fast’);
return false;
});
$(‘#wc-debug-bar-show-coupons’).show();
$(‘#wc-debug-bar-coupons’).hide();
$(‘#wc-debug-bar-show-coupons’).on(‘click’, function() {
$(‘#wc-debug-bar-show-coupons’).hide();
$(‘#wc-debug-bar-hide-coupons’).show();
$(‘#wc-debug-bar-coupons’).show(‘fast’);
return false;
});
$(‘#wc-debug-bar-hide-coupons’).on(‘click’, function() {
$(‘#wc-debug-bar-hide-coupons’).hide();
$(‘#wc-debug-bar-show-coupons’).show();
$(‘#wc-debug-bar-coupons’).hide(‘fast’);
return false;
});
});
Appreciate if this gets into your next update,
Thanks
Thanks for posting a fix! Where did you find that js file?
Thanks @paulg000,
The woocommerce-debug-bar.js file can be found in the plugin;
wp-content/plugins/woocommerce-debug-bar/assets/woocommerce-debug-bar.js
Hope that helps,
Cheers