I have this code that adds input quantity value on the archive (shop) page.
function ace_shop_page_add_quantity_field() { /** @var WC_Product $product */