Woocommerce添加多种产品有效,但不通过数量

I am having an issue passing along quantity when adding multiple items to the shopping cart. I have a table setup where customers can add up to 10 skus at once. It does in fact add all 10 products to the shopping cart page, but the problem is the quantity only shows 1. I've tried a vardump with a echo on the ending cart part and it echos fine. Not really sure why it's not picking it up.

function process_add_products()
{
global $woocommerce;
$cart_url = $woocommerce->cart->get_cart_url();
if (!empty($_POST["add"]))
{
    if ($_POST["add"]==1)
    {
        $addprod_q = $_POST["addprod_q"];
        $addprod_id = $_POST["addprod_id"];
        foreach ($addprod_id as $k=>$pid)
        {   
            $woocommerce->cart->add_to_cart($pid, $addprod_q[$k]);
        }
        header("Location: ".$cart_url);
        die();
    }
  }
}

Any ideas?

It's if you check the box Items sold Individually. It's hard coded to only allow 1