How to assign a rate to a product