Most retailers use a GTIN (Global Trade Item Number) to track and identify their products, but WooCommerce does not have this field by default.
In this post I’ll show you how to add it.
What is a GTIN?
A GTIN is a unique, internationally recognized product tracking number.
In North America, a UPC code is used, while in Europe it’s called an EAN. You may also have heard of an ISBN, which is used for books.
GTINs are used for internal tracking, and are required in product feeds for Google and Amazon.
How to add a UPC/EAN/ISBN field to WooCommerce
By default, WooCommerce comes with a field for SKU, but not GTIN. To add the GTIN field for your UPC, EAN, or ISBN number, we can either use a plugin or custom code.
Here are some things to consider about your GTIN:
- GTIN field is optional, and can be shown or hidden on product pages.
- Variable products must allow for separate GTINs for each variation
- GTIN can be used for Google and Amazon product feeds
Doing this with custom code is a bit complicated, so I built a plugin to do this all for you.
It’s called WooCommerce Add GTIN and you can get it by going to plugins => add new, or download it directly.
This plugin adds a GTIN field to each product under Inventory. It also adds a unique GTIN field for each product variation.
The GTIN is displayed on the product page with the other product meta. To hide the GTIN on the product page, visit WooCommerce settings => Products => Inventory => “Hide GTIN on single product pages.”
Add GTIN to your Google Products Feed
To create a Google Shopping feed, you can use a plugin like Product Feed Pro.
Create a new feed, choose your feed type, and map the HWP GTIN field to your feed mpn or gtin field.
If you have any questions leave them in the comments.