Ferry Bouwhuis - 2014-05-26 16:21:40 - In reply to message 1 from Rudolf Janssen
The answer is Yes, I have written this class for my own web shop.
All barcodes my shop uses are first checked by this class. I Only use a barcode if it is correct.
GTIN-14 is a 14 digit official barcode which will eventually replace EAN-13 and UPC.
I myself use the GTIN-14 for database input, all data in my barcode database is then 14 digits long, in this whey I prevent double or triple input of the same barcode.
is a UPC code
If you add a 0 it will be
0815361011608 which is valid as EAN13 (class will return 12 digit UPC code: 815361011608)
If you add two 0 it will be
00815361011608 which is valid as GTIN-14 (class will return 12 digit UPC code: 815361011608)
You now have 3 valid barcodes which you could include in your DB (815361011608, 0815361011608, 00815361011608) but what I do is only include one barcode GTIN-14. This way you keep your DB clean, small and fast (see also help file which is included when you download the class).