Adding Barcode Values in WooCommerce

Edited

In some cases, Retailers require UPC codes to be assigned to products in order to merchandise them.

The WooCommerce API does not support directly adding UPC values to products. There is no field specifically named for Barcode.

However, Barcodes can be added to products by creating Product Metafields that describe additional data associated with the product. See WooCommerce's product metafields documentation.

The array of data that needs to be added to your existing products will look like this for adding UPCs to products:

Automatic

[{ "id": 1, 
   "key": "barcode",
   "value": "12345678912" 
}, 
{ 
   "id": 2, 
   "key": "barcode_type", 
   "value": "upc" 
}]

After those metafields are added, Modern Dropship's WooCommerce integration will automatically detect the presence of your Barcode values (UPC, GTIN, etc) based on the value set for "barcode_type".