How to trigger the purchase of products based on sales?