title: WooCommerce cart quantity won't change after cart update
body: <p>I use the following snippet to change WooCommerce add to cart quantity rules.</p>
  <pre><code>add_filter( 'woocommerce_quantity_input_args', 'custom_quantity_input_args', 10, 2 );
  
  function custom_quantity_input_args( $args, $product ) {
  $custom_qty_product_ids = array(27345, 27346);
  if (!in_array($product-&gt;get_id(), $custom_qty_product_ids)) {
      $args['input_value']    = 25;
  
  $args['max_value']  = 500;
  $args['min_value']  = 25;
  $args['step']       = 25;
  } else {
      if (in_array($product-&gt;get_id(), $custom_qty_product_ids)){
          $args['input_value']    = 26;
  
  $args['max_value']  = 260;
  $args['min_value']  = 26;
  $args['step']     = 26;
      }
  }
  return $args;
  }
  </code></pre>
  <p>It works on my product page, but the cart quantity won't change after the cart update, here is the screenshot example.</p>
  <p><a href="https://i.stack.imgur.com/IMX28.png" rel="nofollow noreferrer">wc-cart-example-screenshot</a></p>
  <p>The following snippet(<a href="https://docs.woocommerce.com/document/adjust-the-quantity-input-values/" rel="nofollow noreferrer">original code snippet</a>) works perfectly but I want to apply another rule to product 27345, 27346.</p>
  <pre><code>add_filter('woocommerce_quantity_input_args', 'c_qty_input_args', 10, 2);
  
  function c_qty_input_args($args, $product) {
  if(is_singular('product')) {
      $args['input_value'] = 25;
  }
      $args['max_value']  = 500;
      $args['min_value']  = 25;
      $args['step']       = 25;
  
  return $args;
  }
  </code></pre>
  <p>How can I change the snippet and resolve the issue?</p>
  <p>Thank you!</p>