tarcisiocipriano
Forum Replies Created
-
Forum: Plugins
In reply to: [WPC Fly Cart for WooCommerce] Disable option to remove product from cartOw I fix it… I was minifying jQuery with a gulp task, in a vendors file… I had to remove it from there and enqueue it on WordPress functions.php file, but this broke somethings I had wrote in my scripts before…
So I discovered that I have to deregister the WordPress jQuery… Weird, I didn’t knew about this.
Anyway this was my steps
1 – remove jQuery from my gulp minification task
2 – deregister WordPress jQuery by using this in functions file: wp_deregister_script(‘jquery’);
3 – import jQuery again in WordPress in functions file: wp_enqueue_script( ‘jquery’, ‘https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js’, array(), null, true);Ooh that was so embarrassing… But it’s a fucking nice plugin to have!! love it so much!
- This reply was modified 4 years, 2 months ago by tarcisiocipriano.
Forum: Plugins
In reply to: [WPC Fly Cart for WooCommerce] Disable option to remove product from cartI have the same problem, seems like is an issue with jquery… The console outputs:
frontend.js?ver=2.2.2:365 Uncaught TypeError: jQuery(…).perfectScrollbar is not a function
at woofc_perfect_scrollbar (frontend.js?ver=2.2.2:365)
at woofc_show_cart (frontend.js?ver=2.2.2:371)
at woofc_toggle_cart (frontend.js?ver=2.2.2:387)
at HTMLButtonElement.<anonymous> (frontend.js?ver=2.2.2:31)
at HTMLBodyElement.dispatch (jquery.js?ver=1.12.4-wp:3)
at HTMLBodyElement.r.handle (jquery.js?ver=1.12.4-wp:3)But when I don’t import jQuery, the ajax issue is solved… I’ll try to import jQuery older versions to see if this works! And theres a bug to the teams fix I guess… Regards from Brazil guys ??