Are you saying that I should add - if price == row[2] # because price is in row 2? Also but the quantity is not located in the CSV file it will be entered by the customer after they enter the product_id of the plant they want. Sorry I am slow and not very good with ruby thanks for your time and patience. -- Posted via http://www.ruby-forum.com/.