Articles on: WooCommerce

Product Categories (Woocommerce)

Map and organize product categories and hierarchical subcategories from your supplier feed into your WooCommerce store. Using Category Smart Settings lets you auto-create missing categories, translate mismatched supplier category names, and protect existing store category assignments during sync.


Available on: ✔️ Update | ✔️ Export



How to Set Up the Category Field


Go to App → Feed Settings → Step 2: Matching Column


  1. Create Category Slugs in WooCommerce: Ensure your target category slugs exist in your WooCommerce admin and match the slug values in your supplier feed file so categories update accurately by SKU.
  2. Map Category Column: Locate the Category field under Step 2: Matching Column and select the corresponding category column from your supplier feed file.
  3. Map Subcategory Columns (Optional): If your feed contains separate columns for nested categories, map them in sequence using the Cat1>>Cat2>>Cat3 hierarchy format (e.g., Men → Clothes → T-Shirt).
  4. Save and Sync: Save your feed settings and run a sync to assign or update product categories in your store.


Category Field Overview


WooCommerce Subcategory Mapping Example


If your supplier feed file does not contain a category column and you want to assign all synced products to a single category (such as accessories), map the Category field using a fixed static value.


When mapping nested columns with Cat1>>Cat2>>Cat3, the first column sets the primary category (Men), the second sets its subcategory (Clothes), and the third sets the nested child subcategory (T-Shirt).



Category Field Smart Settings


1. Category Name

Automatically generate a new category name in your store using the incoming feed file value whenever a matching category slug is not found.


Category Name Setting


Example: If the category accessories does not exist in your store, Stock Sync automatically creates accessories as a new category based on your feed file value.


By default, leaving Category Name empty assigns the exact same value to both the category slug and the category name. This setting also supports subcategories.


2. Find

Search for multiple words or phrases separated by commas to locate mismatched category values in your feed file. Search matches any part of a word, including wildcard (*) patterns.


Find Setting


Example: If your store uses the category slug computer while your supplier feed lists PC, enter PC in the Find field to match it.


3. Replace With

Replace the words or phrases matched in the Find field using comma-separated store category slugs so incoming feed categories align with your existing WooCommerce taxonomy.


Replace With Setting


Example: Pair PC in Find with computer in Replace with to map supplier PC rows into your store's computer category.


4. Replace Store Product's Categories

Control whether incoming feed categories append to a product's existing categories or overwrite them completely. When unchecked, Stock Sync preserves existing store categories and only adds new categories from the source feed.


Replace Store Product's Categories Setting


Full Replacement Warning: If Replace store product's categories is enabled, the feed replaces all existing product categories and may move products into unintended categories. Keep this option unchecked unless full category replacement is intended.


If you only need to add or remove a single specific category (such as pre-order) based on a feed attribute, use Liquid or conditional mapping instead of enabling full category replacement.



Key Rules & Technical Details


  • Subcategory Hierarchy Syntax: Map multi-column category hierarchies in descending order (Cat1>>Cat2>>Cat3) so Stock Sync assigns parent and child categories accurately.
  • Default Slug & Name Behavior: When Category Name is left blank, any newly created category automatically uses the feed's value for both its slug and display name.
  • Non-Destructive Category Updates: Leaving Replace store product's categories unchecked ensures existing manual category assignments remain intact while new categories from your supplier feed are appended.



Troubleshooting Steps


  • Issue: Products are moved out of their existing WooCommerce categories during sync → Solution: Open Category → Smart Settings and uncheck Replace store product's categories so Stock Sync only appends new categories without removing existing ones.
  • Issue: Supplier category names do not match existing WooCommerce category slugs → Solution: Use the Find and Replace with fields in Smart Settings to map your supplier's terminology (e.g., PC) to your WooCommerce category slug (e.g., computer).
  • Issue: Subcategories are not nesting properly under parent categories → Solution: Verify that your category columns are mapped in sequential order using Cat1>>Cat2>>Cat3 in Step 2: Matching Column.



Good Articles to Continue


Updated on: 24/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!