Title: Problem with mapping categories
Last modified: February 12, 2024

---

# Problem with mapping categories

 *  Resolved [gostomek](https://wordpress.org/support/users/gostomek/)
 * (@gostomek)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/problem-with-mapping-categories/)
 * How can I mapped categories if my supplier has in XML file like this:
 *     ```wp-block-code
       <categories>
       <category level="0">
       <![CDATA[Sztućce]]>
       </category>
       <category level="1">
       <![CDATA[Sztućce Fine Dine]]>
       </category>
       <category level="2">
       <![CDATA[Amarone Gold]]>
       </category>
       <category level="1">
       <![CDATA[Sztućce wg zastosowań]]>
       </category>
       <category level="2">
       <![CDATA[Noże stołowe]]>
       </category>
       <category level="1">
       <![CDATA[Marki]]>
       </category>
       <category level="2">
       <![CDATA[Fine Dine]]>
       </category>
       <category level="1">
       <![CDATA[Sztućce kolorowe PVD]]>
       </category>
       <category level="2">
       <![CDATA[Sztućce złote]]>
       </category>
       <category level="1">
       <![CDATA[Sztućce wg materiału]]>
       </category>
       <category level="2">
       <![CDATA[Stal nierdzewna 18/10]]>
       </category>
       <category level="0">
       <![CDATA[ZASTAWA STOŁOWA]]>
       </category>
       <category level="1">
       <![CDATA[Sztućce]]>
       </category>
       <category level="2">
       <![CDATA[Noże]]>
       </category>
       </categories>
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-mapping-categories%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Support [dominikl65](https://wordpress.org/support/users/dominikl65/)
 * (@dominikl65)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/problem-with-mapping-categories/#post-17421050)
 * Hi,
 * I would like to ask what effect you would like to achieve on the site, what would
   these categories look like? Would it be a category tree based on the principle:
   
   Level1 → Level2 → Level3? Or in some other way?
 * In the uploaded file, there are a number of category trees that have a structure
   with the same level.
 *  Thread Starter [gostomek](https://wordpress.org/support/users/gostomek/)
 * (@gostomek)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/problem-with-mapping-categories/#post-17421191)
 * Hi,
 * I mean that will be good to automatically made categories like:
   level 0->level
   1->level 2Sztućce -> Sztućce Fine Dine -> Amarone Goldlevel 1->level 2Sztućce
   wg zastosowań -> Noże stołowelevel 1->level 2Marki -> Fine Dinelevel 1->level
   2Sztućce kolorowe PVD -> Sztućce złotelevel 1->level 2Sztućce wg materiału – 
   > Stal nierdzewna 18/10level 0->level 1->level 2ZASTAWA STOŁOWA ->Sztućce -> 
   Noże
 *  Plugin Support [dominikl65](https://wordpress.org/support/users/dominikl65/)
 * (@dominikl65)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/problem-with-mapping-categories/#post-17427677)
 * Hi,
 * I have consulted with the developer and unfortunately, based on the kind of file
   structure you uploaded, this is unfortunately not feasible. I would recommend
   contacting the wholesaler to correct/change the structure in the XML file.
 *  Thread Starter [gostomek](https://wordpress.org/support/users/gostomek/)
 * (@gostomek)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/problem-with-mapping-categories/#post-17431472)
 * Hi,
 * ok I understand it is mot possbile to get all.
 * Maybe it will be ok to handle it only first lines:
 * level 0->level 1->level 2
   Sztućce -> Sztućce Fine Dine -> Amarone Gold
 *  Plugin Support [dominikl65](https://wordpress.org/support/users/dominikl65/)
 * (@dominikl65)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/problem-with-mapping-categories/#post-17435470)
 * Hi,
 * Unfortunately, this will not be possible due to this file structure. I would 
   recommend contacting the wholesaler to correct the file structure – unfortunately,
   without this, it will not be possible to import the category tree as you would
   like to realize.
 *  Thread Starter [gostomek](https://wordpress.org/support/users/gostomek/)
 * (@gostomek)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/problem-with-mapping-categories/#post-17435489)
 * Dear [@dominikl65](https://wordpress.org/support/users/dominikl65/),
 * so could you please provide example how the structure of categories should be?
 *  Plugin Support [dominikl65](https://wordpress.org/support/users/dominikl65/)
 * (@dominikl65)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/problem-with-mapping-categories/#post-17445621)
 * Hi gostomek,
 * If you want to use and create a category tree, then this structure would be appropriate:
   [https://monosnap.com/file/1WGxwUKmpYAW171O6AvtPP0exMutR1](https://monosnap.com/file/1WGxwUKmpYAW171O6AvtPP0exMutR1)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Problem with mapping categories’ is closed to new replies.

 * ![](https://ps.w.org/dropshipping-xml-for-woocommerce/assets/icon-256x256.png?
   rev=2621309)
 * [Dropshipping XML for WooCommerce](https://wordpress.org/plugins/dropshipping-xml-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dropshipping-xml-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dropshipping-xml-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/dropshipping-xml-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dropshipping-xml-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dropshipping-xml-for-woocommerce/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [dominikl65](https://wordpress.org/support/users/dominikl65/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/problem-with-mapping-categories/#post-17445621)
 * Status: resolved