How to add a barcode for a product on web?

Please go to Products and Services >> Edit the desired product >> You can add the barcode number by clicking on auto generate barcode.

If you are looking to add existing barcode present on your product, scan the barcode number or add it manually