<div class="product-section__information_quantity">
    <input name="count_product" type="text" value="50">
    <input name="count_product" type="text" value="1000">
    <button class="click">click</button>
</div>
var allCountInform  =  0;

$(document).ready(() => {
  $(document).on('click', '.click', function () {
    allCountInform  =  0;
    $(this).closest('.product-section__information_quantity').find("input[name=count_product]").each( function () {            
      allCountInform  = allCountInform+parseInt($(this).val());
    });
    alert(allCountInform);
  });
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js