Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to get warning when exit browser without saving?

Get warning when exit browser without saving <script> jQuery(document).ready(function($){ $(window).unbind(‘beforeunload’); $(“input[type=’submit’]”).click(function(){      $(window).unbind(‘beforeunload’); }); $(“input”).on(“change paste keyup”, function() {   $(window).bind(‘beforeunload’, function(){ return ‘Are you sure you want to

Read More »

How to Update Custom Cart Count with AJAX in WooCommerce?

How to Update Custom Cart Count with AJAX in WooCommerce? function totalcartqty(){ ?> <div class=”header-cart-count”><?php echo WC()->cart->get_cart_contents_count(); ?></div> <?php } add_action(‘wp_head’,’totalcartqty’); add_filter( ‘woocommerce_add_to_cart_fragments’, ‘iconic_cart_count_fragments’, 10, 1 ); function iconic_cart_count_fragments( $fragments

Read More »