Well, a barcode is just a system that uses lines to represent characters so the easiest way is to download a barcode font (like this:
[
^]) and print whatever you like out using that.
Don't know about the name and price mind. These would normally be held elsewhere and the barcode would act just as a key to that data. Otherwise when prices change you'd have to print out a new barcode, and that would be bobbins.