Managing WooCommerce product data at scale often requires a Product Information Management (PIM) system or bulk CSV imports. However, not all fields are mapped by default—especially advanced fields like product tags and upsells.
In this case, a WooCommerce importer was extended to support product tags and upsells via SKU, allowing for more flexible product merchandising and search optimization during bulk imports.
Issue Background
A WooCommerce store using a custom PIM importer needed to expand its import capabilities.
- No support for product tags during import
- No ability to assign upsell products via CSV
- Required manual updates inside WooCommerce
- Inefficient workflow for large product catalogs
The goal was to add support for standard WooCommerce fields, enable bulk updates via CSV, and maintain compatibility with existing import logic.
Diagnosis
The importer was already handling core product fields but lacked mappings for product_tags and upsells.
- product_tags maps to the WooCommerce taxonomy product_tag
- upsells require linking products via SKU relationships
- Import format needed to remain consistent with existing conventions
Resolution Steps
1. Add new CSV columns
sku,product_tags,upsells
ABC123,interior;primer,SKU456;SKU789
2. Define delimiter rules
- Values are semicolon-delimited
- Multiple values can be passed in a single cell
3. Map product tags to WooCommerce taxonomy
- Parsed values from product_tags column
- Assigned terms to product_tag taxonomy
- Blank cell = no change
- __DELETE__ = remove all tags
- Values overwrite existing tags
4. Map upsells using SKU relationships
- Converted SKUs to product IDs
- Assigned upsell relationships programmatically
- Blank cell = no change
- Valid SKUs replace existing upsells
5. Maintain consistent importer behavior
All fields follow the same rules: blank values skip, __DELETE__ clears, and values overwrite.
6. Test import functionality
Tested on staging and production to confirm tags and upsells applied correctly.
Final Outcome
- Product tags can now be managed via CSV
- Upsell relationships can be assigned using SKUs
- Bulk product management is faster and more efficient
- Manual WooCommerce updates were reduced
If your WooCommerce import process is limiting your ability to scale, Freshy can help extend and optimize your workflow.
Contact Freshy