We put barcodes on shirts that go in large grocery stores. We have to get them from GS1 so they are unique. Once we create them, we use the DYMO LabelWriter 450 to print them. We add product and pricing information in their software before we print.
If you don't need unique barcodes or can use ones that are no longer in use, you can buy them really inexpensively from online vendors.