Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 49 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. add_action( 'wp_footer', 'bbloomer_cart_refresh_update_qty' );
  2.  
  3. function bbloomer_cart_refresh_update_qty() {
  4.     if (is_cart()) {
  5.         ?>
  6.         <script type="text/javascript">
  7.             jQuery('div.woocommerce').on('click', 'input.qty', function(){
  8.                 jQuery("[name='update_cart']").trigger("click");
  9.             });
  10.         </script>
  11.         <?php
  12.     }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top