mindthetrash
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
same here
Hi Marco,
No problem 🙂 we are ready to buy the premium plugin when it’s compatible with the woocommerce block checkout.
Thanks a lot!
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Keep underscore with SKUThanks a lot! It works like a charm 🙂
I wish there were more WP plugins build as well as this!
Sounds great 🙂
It’s definitely something we will be very careful with. As of now, we are just testing it on a new website we are making.
Thanks again!
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Wishlist counter gets cachedI just saw another post with the exact same issue as me. He was told to add this code: Here
if ( defined( 'YITH_WCWL' ) && ! function_exists( 'yith_wcwl_ajax_update_count' ) ) { function yith_wcwl_ajax_update_count() { wp_send_json( array( 'count' => yith_wcwl_count_all_products(), ) ); } add_action( 'wp_ajax_yith_wcwl_update_wishlist_count', 'yith_wcwl_ajax_update_count' ); add_action( 'wp_ajax_nopriv_yith_wcwl_update_wishlist_count', 'yith_wcwl_ajax_update_count' ); } if ( defined( 'YITH_WCWL' ) && ! function_exists( 'yith_wcwl_enqueue_custom_script' ) ) { function yith_wcwl_enqueue_custom_script() { wp_add_inline_script( 'jquery-yith-wcwl', " jQuery( function( $ ) { let refreshCounter = () => { $.get( yith_wcwl_l10n.ajax_url, { action: 'yith_wcwl_update_wishlist_count' }, function( data ) { $('.menu-item-wishlist').find('.mini-item-counter').html( data.count ); } ); }; $( document ).on( 'added_to_wishlist removed_from_wishlist', refreshCounter ); refreshCounter(); } ); " ); } add_action( 'wp_enqueue_scripts', 'yith_wcwl_enqueue_custom_script', 20 ); }Part of it looks a lot like the code we are using.
So it looks like there’s a way to implement it, no?
Viewing 5 replies - 1 through 5 (of 5 total)