PHP Classes

What is GTIN14 and why should I use it

Recommend this page to a friend!

      PHP Barcode Checker (EAN/JAN/UPC/GTIN)  >  All threads  >  What is GTIN14 and why should I use it  >  (Un) Subscribe thread alerts  
Subject:What is GTIN14 and why should I use it
Summary:gtin14 what is it?
Messages:2
Author:Rudolf Janssen
Date:2014-05-19 14:42:18
Update:2014-05-26 16:21:40
 

  1. What is GTIN14 and why should I use it   Reply   Report abuse  
Picture of Rudolf Janssen Rudolf Janssen - 2014-05-19 14:42:18
Hello,

I am making my own webstore and want to check given barcodes is this the right class for me.
The title states it can but i can't read php that well.
I know ean and upc codes but what is gtin14?

Kind regards Rudolf

  2. Re: What is GTIN-14 and why should I use it   Reply   Report abuse  
Picture of Ferry Bouwhuis Ferry Bouwhuis - 2014-05-26 16:21:40 - In reply to message 1 from Rudolf Janssen
Dear Rudolf,

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
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.

Example 815361011608
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).