search products with barcode, get total price and calculate discounts