Category mapping
How to assign supplier categories to your existing PrestaShop categories in step 4, and what happens to products whose category is not mapped.
Two ways to import categories
- Map a column to the
categoriesfield, with full paths such asHome > Clothing. Categories that do not exist are created with those names. Use it when the file already follows your category tree. - Use Category mapping when your supplier has its own categories. You say once which of your categories each supplier category goes to. Mapping uses category IDs and never creates supplier categories in your shop.
Category mapping is available in import profiles only.
Enable category mapping
- Open the Category mapping step and tick Map supplier categories to existing PrestaShop categories.
- Under the explanation, enter the source columns that hold the supplier category:
- one column containing full paths, with several paths separated by
|, for exampleClothing > Shirts|Sale; or - several columns ordered from parent to child, for example
category,subcategory,subsubcategory. Press Add tree level for each extra column, up to 8.
- Press Obtain supplier categories. The module reads the entire source, not only the preview, and adds a row for each supplier category found.
Map each category
Each row of the table has:
| Column | What to choose |
|---|---|
| Supplier path | The supplier category or full path, for example Clothing > Shirts. Filled in by Obtain supplier categories; you can also type it. |
| Default destination | The category that becomes the product's default category. |
| Additional destinations (multiple selection) | Other categories the product is also placed in. Hold Ctrl or Cmd to select several. |
Press Add category mapping to add a row by hand, and × to remove one. Category names are matched exactly, ignoring spaces around >. Up to 2,000 mappings per profile, and a source may contain up to 2,000 distinct category paths.
The destination lists show your categories as #ID · path. A destination that no longer exists in your shop appears as Unavailable category # followed by its ID; choose another one.
Unmapped or empty categories
If a category is empty or unmapped decides what happens to a row whose supplier category has no mapping:
| Option | What happens |
|---|---|
| Preserve existing categories (new products: shop home) | An existing product keeps its current categories. A new product goes to the shop's home category. |
| Skip the entire record | The row is not imported. |
| Use a fallback category for unmapped paths | Mapped paths are applied, and unmapped paths use the categories selected in Fallback category. |
| Report a row error | The row fails and appears in the report, so you can add the missing mapping. |
With Preserve or Skip, one unmapped path in a row applies that option to the whole row. With the fallback option, mapped paths are kept and only the missing ones use the fallback.
Categories and the related data policy
How mapped categories combine with the categories a product already has depends on the Categories policy in Related data & feature columns of the Column mapping step. With Replace after success (the default), categories no longer supplied are removed once the complete source has been processed without errors. With Merge, the new categories are added and the existing ones kept. See Column mapping.
Still need help?
Open a support ticket from your account and our team will look at your store with you.