title: Which Hook is running after Woocommerce update cart button action
body: <p>i need to know which hook is running after clicking the update cart button in the cart page .</p>
  
  <p>That is in cart page we have 4 button , <code>update cart</code> , <code>continue shopping</code>, <code>proceed to checkout</code> , <code>apply coupon</code> .</p>
  
  <p>So i want to know which hook is run after update cart button is clicked . When customer click the update cart button after changing the quantity then i have to run a special function that can change total price in the cart , If some condition met , i will change the total price in the cart , and this total price need to pass to the checkout page also /</p>
  
  <p>Please help  .</p>
  
  <p>For example </p>
  
  <pre><code>add_filter('after_update_cart_function_finished', 'special_function');
  
  function special_function(){
     $applied_coupons= WC()-&gt;cart-&gt;get_applied_coupons();
     if(!empty($applied_coupons)){
  
     $new_value=WC()-&gt;cart-&gt;get_cart_subtotal();
     $discounted=WC()-&gt;cart-&gt;coupon_discount_totals;
     $discounted_value=array_values($discounted)[0];
     $new_value=$new_value-$discounted_value+100;
      WC()-&gt;cart-&gt;set_total_price($new_value);
      After this update all post_meta value that regarding to order total
     }
  
  
  }
  </code></pre>
  
  <p>Please see the following custom function that i write for to change value in cart </p>
  
  <pre><code> function action_woocommerce_cart_totals_after_order_total(  ) {
            $applied_coupons= WC()-&gt;cart-&gt;get_applied_coupons();
            if(!empty($applied_coupons)){
  
  
          $new_value=WC()-&gt;cart-&gt;get_cart_subtotal();
          $discounted=WC()-&gt;cart-&gt;coupon_discount_totals;
          $discounted_value=array_values($discounted)[0];
          $new_value=$new_value-$discounted_value;
          if($new_value&lt;100){
              $new_value=$new_value+5;
          }
  
           ?&gt;
           &lt;style&gt;
           .new-price-new{
               color:black;
               font-size: 17px;
           }
           &lt;/style&gt;
           &lt;script&gt;
           jQuery(function($){
                $(".order-total .woocommerce-Price-amount.amount").text("£&lt;?php  echo $new_value;?&gt;");
                $(".order-total .woocommerce-Price-amount.amount").hide();
                $(".new-price").remove();
                $('.order-total .woocommerce-Price-amount.amount').after('&lt;div class="new-price-new"&gt;£&lt;?php  echo $new_value;?&gt;&lt;/div&gt;');;
                $(".new-price-new").show();
  
  
           });
  
  
           &lt;/script&gt;
  
           &lt;?php 
        }
      else{
          ?&gt;
           &lt;script&gt;
           jQuery(function($){
          $(".new-price-new").remove();
           });
           &lt;/script&gt;
      &lt;?php }   
  
  }; 
  
  add_action( 'woocommerce_cart_totals_after_order_total', 'action_woocommerce_cart_totals_after_order_total', 10, 0 ); 
  </code></pre>
  
  <p>And this function have many problems , i write this function because of some reason or some other function woocommerce is not calculating coupon price correctly , so i write this function for to manually update the product price in cart .Here if the cart value is more than 100 we provide free shipping other vise we will add 5 .  Even this function is not working properly .</p>
  
  <p><a href="https://stackoverflow.com/questions/49505056/woocommerce-create-new-discount-functionality">Woocommerce Create new discount functionality</a></p>