Added wc_stock_amount() core function and replaced intval

#4612