check stock & add config variable 

add config variable 'quantity-stock-default'