daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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