How to add a WooCommerce UPC product number


Believe it or not, WooCommerce does not support UPC product numbers out of the box! There have been many calls from users of WooCommerce to get this feature added, but it has still not landed in the software just yet. So to add a WooCommerce UPC product number, you will need to use a plugin.

Luckily, there are a number of plugins which add this functionality and in this guide we’re going to show you exactly how to get it setup on your site. Let’s go!

Step 1: Install a WooCommerce UPC product number plugin

Firstly, we’re going to install a plugin as discussed above. At WP Geeks, we’re currently working on a very simple and intuitive plugin for just this purpose, but until that is released, we recommend that you use the plugin built by Scott Bolinger.

Download the plugin and install it to your WordPress and WooCommerce store. Done? Great, let’s move on.

Step 2: Select the product to add to UPC product number to

Now that the plugin is installed, we need to find the product that you want to add the UPC product number to. You’re very likely going to want to add a unique product number to multiple different products in your online store. Whatever the case, let’s find the first product to add the number to from the Products tab on the WP Admin sidebar menu.

Once you’ve identified the product, click the edit button to edit the product. See the below screenshot to see where to find the edit button in the product listings. You can also click the product title.

WooCommerce UPC Product Listing

Step 3: Add the UPC product number to the product data section

Lastly, we now simply need to scroll down to the Product data meta box on the product page. Click “Inventory” and you will see a field called GTIN (which stands for Global Trade Item Number). You should add the UPC code in to this field. See the screenshot below for what this field should look like.

WooCommerce UPC Product Number

And that’s all there is to it! Did you get stuck or have any questions, hit us up in the comments below. We’ll do our best to help you out.


    1. Hi Varesh,

      It sounds like you’re needing to add barcodes to your website? This specific guide is just for UPC product numbers. To display these on the frontend of your website, you’ll need to use the `get_option` function from WordPress and integrate that with your theme.

      Hope this helps!

  1. Hi, Just like barcode, I would like to add 2 more fixed fields (Country or origin and HS Code) to my products. I would like to carry this to my orders as well. How is it possible? I do not want to code. Is it possible to access a plugin for this?

    1. Hi there,

      I would recommend that you search for a suitable plugin in the plugin repository to add custom fields to products. There are a number of them available.

Leave a comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.