martiniboy
Forum Replies Created
-
No worries will do – sorry I blamed your plugin as it stopped working ??
Yes but not as many – but still script errors – it is not saying your plugin is the issue there though. I will contact the shop as customer developers.
mouse.min.js?ver=1.12.1:9 Uncaught TypeError: o.widget is not a function at mouse.min.js?ver=1.12.1:9 at mouse.min.js?ver=1.12.1:9 at mouse.min.js?ver=1.12.1:9 (anonymous) @ mouse.min.js?ver=1.12.1:9 (anonymous) @ mouse.min.js?ver=1.12.1:9 (anonymous) @ mouse.min.js?ver=1.12.1:9 resizable.min.js?ver=1.12.1:9 Uncaught TypeError: Cannot read property 'mouse' of undefined at resizable.min.js?ver=1.12.1:9 at resizable.min.js?ver=1.12.1:9 at resizable.min.js?ver=1.12.1:9 (anonymous) @ resizable.min.js?ver=1.12.1:9 (anonymous) @ resizable.min.js?ver=1.12.1:9 (anonymous) @ resizable.min.js?ver=1.12.1:9 draggable.min.js?ver=1.12.1:9 Uncaught TypeError: Cannot read property 'mouse' of undefined at draggable.min.js?ver=1.12.1:9 at draggable.min.js?ver=1.12.1:9 at draggable.min.js?ver=1.12.1:9 (anonymous) @ draggable.min.js?ver=1.12.1:9 (anonymous) @ draggable.min.js?ver=1.12.1:9 (anonymous) @ draggable.min.js?ver=1.12.1:9 controlgroup.min.js?ver=1.12.1:9 Uncaught TypeError: r.widget is not a function at controlgroup.min.js?ver=1.12.1:9 at controlgroup.min.js?ver=1.12.1:9 at controlgroup.min.js?ver=1.12.1:9 (anonymous) @ controlgroup.min.js?ver=1.12.1:9 (anonymous) @ controlgroup.min.js?ver=1.12.1:9 (anonymous) @ controlgroup.min.js?ver=1.12.1:9 checkboxradio.min.js?ver=1.12.1:9 Uncaught TypeError: Cannot read property 'formResetMixin' of undefined at checkboxradio.min.js?ver=1.12.1:9 at checkboxradio.min.js?ver=1.12.1:9 at checkboxradio.min.js?ver=1.12.1:9 (anonymous) @ checkboxradio.min.js?ver=1.12.1:9 (anonymous) @ checkboxradio.min.js?ver=1.12.1:9 (anonymous) @ checkboxradio.min.js?ver=1.12.1:9 button.min.js?ver=1.12.1:9 Uncaught TypeError: n.widget is not a function at button.min.js?ver=1.12.1:9 at button.min.js?ver=1.12.1:9 at button.min.js?ver=1.12.1:9 (anonymous) @ button.min.js?ver=1.12.1:9 (anonymous) @ button.min.js?ver=1.12.1:9 (anonymous) @ button.min.js?ver=1.12.1:9 dialog.min.js?ver=1.12.1:9 Uncaught TypeError: l.widget is not a function at dialog.min.js?ver=1.12.1:9 at dialog.min.js?ver=1.12.1:9 at dialog.min.js?ver=1.12.1:9 (anonymous) @ dialog.min.js?ver=1.12.1:9 (anonymous) @ dialog.min.js?ver=1.12.1:9 (anonymous) @ dialog.min.js?ver=1.12.1:9 sortable.min.js?ver=1.12.1:9 Uncaught TypeError: Cannot read property 'mouse' of undefined at sortable.min.js?ver=1.12.1:9 at sortable.min.js?ver=1.12.1:9 at sortable.min.js?ver=1.12.1:9
Wow, that was a fast reply, Sorry I didn’t put that in did I, whoops.
I have just created a staging website so I can deactivate without causing any issue to the live website and have found the culprit: FME Addons: Shop as a Customer for WooCommerce V1.08.
I can send you a copy to test if that would help?
Here are the script errors from my console
Uncaught TypeError: o.widget is not a function at mouse.min.js?ver=1.12.1:9 at mouse.min.js?ver=1.12.1:9 at mouse.min.js?ver=1.12.1:9 sortable.min.js?ver=1.12.1:9 Uncaught TypeError: Cannot read property 'mouse' of undefined at sortable.min.js?ver=1.12.1:9 at sortable.min.js?ver=1.12.1:9 at sortable.min.js?ver=1.12.1:9 draggable.min.js?ver=1.12.1:9 Uncaught TypeError: Cannot read property 'mouse' of undefined at draggable.min.js?ver=1.12.1:9 at draggable.min.js?ver=1.12.1:9 at draggable.min.js?ver=1.12.1:9 slider.min.js?ver=1.12.1:9 Uncaught TypeError: Cannot read property 'mouse' of undefined at slider.min.js?ver=1.12.1:9 at slider.min.js?ver=1.12.1:9 at slider.min.js?ver=1.12.1:9 iris.min.js?ver=1.0.7:5 Uncaught TypeError: a.widget is not a function at iris.min.js?ver=1.0.7:5 at iris.min.js?ver=1.0.7:5 color-picker.min.js?ver=5.8:2 Uncaught TypeError: i.widget is not a function at color-picker.min.js?ver=5.8:2 at color-picker.min.js?ver=5.8:2 export-fields.js?ver=3.1.9:1071 Uncaught TypeError: jQuery(...).sortable is not a function at export-fields.js?ver=3.1.9:1071 jquery-3.5.1.js?ver=1.0:4055 Uncaught TypeError: $(...).wpColorPicker is not a function at HTMLDocument.<anonymous> (admin.php?page=wc-order-export:376) at mightThrow (jquery-3.5.1.js?ver=1.0:3762) at process (jquery-3.5.1.js?ver=1.0:3830) export-fields.js?ver=3.1.9:500 Uncaught TypeError: el.draggable is not a function at woe_activate_draggable_field (export-fields.js?ver=3.1.9:500) at export-fields.js?ver=3.1.9:363 at Array.forEach (<anonymous>) at Array.<anonymous> (export-fields.js?ver=3.1.9:354) at Function.each (jquery-3.5.1.js?ver=1.0:387) at woe_create_unselected_fields (export-fields.js?ver=3.1.9:352) at woe_create_selected_fields (export-fields.js?ver=3.1.9:5) at export-fields.js?ver=3.1.9:1051
- This reply was modified 3 years, 6 months ago by martiniboy. Reason: sorting code html out
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Filter by Bookings start dateOK thanks for getting back to me about this, I shall try that out
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Filter by Bookings start dateThis is great thanks for this, is there any way to order by time also via this filter? Or date and time if choosing multiple booking days (although we will only be exporting on a daily basis)
@ermkmehta Thank you so much that sorted it. not sure why this isn’t made obvious for all users
Thanks for getting back to me, yes already tried deactivating all plugins except WC and the theme is a child of Storefront but just switched it to the parent to be double sure but still the same.
One thing that I did find was when I deactivated the WooCommerce admin plugin I kept getting fatal errors so had to rename the plugin folder to deactivate it. I am guessing that wc admin is no longer needed due to it being inbuilt to WC now?Thanks that worked for me ??
I have not had chance to do thorough testing yet but will mark this as resolved and get back to you with my finding
Thank you very muchHi aryan12 if it is not working for you add the following to your themes functions.php add any conditionals you would like around it the script – so you are not loading on every page ie. if(is_category(){
function martiniboy_yith_hide_empty(){ ?> <script type="text/javascript"> jQuery(document).ready(function($){ 'use strict'; $(".yith-wcan.categories li").each(function(){ if($(this).html() === "" || typeof($(this).html())==="undefined") { $(this).remove(); } }); }); jQuery( document ).ajaxComplete(function() { 'use strict'; jQuery(".yith-wcan.categories li").each(function(){ if(jQuery(this).html() === "" || typeof(jQuery(this).html())==="undefined") { jQuery(this).remove(); } }); }); </script> <?php } add_action('wp_footer','martiniboy_yith_hide_empty');
Aryan12 you create a js file in your theme and enqueue it or add a script function but Yith have sorted the issue so you shouldn’t need it any more
Yes that is correct sorry I should have linked to it
Also I have site with the filter on using your filter on all up to date but am not seeing any of the attribute filters using the7 Theme Before the updates all worked nicely where as other filter plugins didn’t, other plugin developers said it was because the theme uses to much jQuery and conflicts,
Hi aryan12, I wouldn’t advise editing the plugin files because it may break on next update. There probably is a filter which you are able to hook into to remove the empty ones I personally pop a bit of jquery on the pages that i use the filter on to remove them
Try the following :
jQuery(document).ready(function($){ 'use strict'; $(".yith-wcan.categories li").each(function(){ if($(this).html() === "" || typeof($(this).html())==="undefined") { $(this).remove(); } }); }); jQuery( document ).ajaxComplete(function() { 'use strict'; jQuery(".yith-wcan.categories li").each(function(){ if(jQuery(this).html() === "" || typeof(jQuery(this).html())==="undefined") { jQuery(this).remove(); } }); });
Thanks after further testing it looks like with Woo-themes product search it has the problem, on other sites I have used it on without the product search it works fine, so I will pass the error on to woo themes ??
Thanks for looking into itForum: Plugins
In reply to: [WooCommerce] Redirect category if it only has a single productThis works for me
/* Redirect if there is only one product in the category */ add_action( 'template_redirect', 'martiniboy_woocommerce_redirect_if_single_product_in_category', 10 ); function martiniboy_woocommerce_redirect_if_single_product_in_category ($wp_query) { global $wp_query; if (is_product_category()) { if ($wp_query->post_count==1) { $product = new WC_Product($wp_query->post->ID); if ($product->is_visible()) wp_safe_redirect( get_permalink($product->id), 302 ); exit; } } }
Not sure whether that is the correct way but works for me ??
Forum: Plugins
In reply to: [Advanced lazy load] wp_enqueue_script called incorrectlyI just installed the plugin to se if it will improve my page speed and also got lots of enqueue errors, deactivated everything and this was the cause?