To ship internationally, each product needs a few key data points so customs paperwork and labels can be generated correctly. This guide shows how to add them in WooCommerce and where to find HS Codes.
Before you start
- SKU – Your unique stock identifier (letters/numbers). Keep it stable; changing SKUs breaks tracking.
- Weight (kg) – Enter as kilograms (e.g., 0.35 for 350g). Do not use grams or lbs.
- Base price – The product’s selling price.
- HS Code – The first 6 digits of the Harmonized System classification for your product.
- Country of Origin – Where the product was made.
Part A — Create custom attributes (HS Code & Country of Origin)
These two attributes don’t exist by default in WooCommerce. Create them once, then reuse them on any product.
A1) Go to Products → Attributes
Screenshot: Products → AttributesA2) Add the attributes
Create two attributes named HS Code and Country of Origin.
Screenshot: Add attributes- HS Code
- Country of Origin
A3) Configure items (add allowed values)
Click Configure terms/items next to each attribute to add values you’ll reuse (e.g., HS codes you commonly ship, or origin countries).
Screenshot: Configure itemsA4) Fill in the values
For HS Code, enter only the first 6 digits (e.g., 420222). For Country of Origin, add your manufacturing countries (e.g., CN, AE, IN, TR, …).
Screenshot: Add HS Code value
Screenshot: Add Country of Origin valuePart B — Set product core fields (SKU, Price, Weight)
B1) Go to Products
Screenshot: Products listB2) Quick Edit a product
Hover over a product and click Quick Edit.
Screenshot: Quick EditB3) Add SKU, Price, and Weight (kg)
Enter a unique SKU, set Price, and add Weight in kilograms (e.g., 0.35). Click Update.
Screenshot: Set SKU, Price, WeightPart C — Assign HS Code & Country of Origin to a product
C1) Edit the product page
Click Edit under the product name to open the full editor.
Screenshot: Edit productC2) Scroll to Product data → Attributes
In the Attributes tab, click Add to insert a product attribute.
Screenshot: Add attributeC3) Select attribute & value(s)
Choose HS Code, pick the correct 6-digit code from the list, then click Add another and select Country of Origin with the right country.
Screenshot: Select HS Code & Country of OriginC4) Add attributes to the product
Click Add to attach the attributes to the product.
Screenshot: Add attributes to productC5) Update the product
Click Update to save your changes.
Screenshot: Update productQuick checks & common mistakes
- HS Code length: Use only the first six digits.
- Weight units: Must be in kg. Don’t enter grams (g) or pounds (lb).
- Unique SKUs: Each product/variant needs a unique SKU.
- Saved values: If you don’t see a code/country in the dropdown, add it in Products → Attributes → Configure items.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article