Skip to main content

How to create category mapping

Category mapping allows you to align your Magento store categories with the categories used by shopping engines (e.g., Google Shopping). This ensures that your products are placed in the correct categories on external platforms.

Create a new category mapping

1. Add a new category mapping

  • Go to Catalog -> Advanced Product Feeds -> Category mapping.
  • Click Add category mapping.

2. Configure the mapping

  • Add the name for new mapping in the Mapping name field.

  • Match your store categories with the shopping engine categories. If a child category does not have a specific mapping, it will inherit the mapping from the parent category.

    tip

    When you start typing a category name, the system automatically suggests categories from the Google Shopping taxonomy file.

3. Save and use the mapping

  • Click Save to finalize the mapping.
  • You can now apply this category mapping in your product feed templates.

Custom taxonomy files

You can add other taxonomy files (besides Google Shopping) to the extension folder.

magento_root/vendor/mirasvit/module-feed/src/Feed/Setup/data/mapping

This allows you to use custom category mappings for different platforms.


How to use category mapping in feeds

  • For CSV feeds

    • Select the attribute Category mapping: Name from the drop-down list.
  • For XML feeds

    • Use the pattern:
      {{ product.mapping:mapping_id }}
      Example:
      {{ product.mapping:1 }}
      Here, 1 is the Category mapping ID assigned to your mapping.