I'm loading a quite extensive feed through the rest API.
The importation runs well, but I only have one problem.
The supplier defines the relation between parent and child by id provided in the feed.
However WooCommerce does not let me define the ID for the categories since it's read only. When I try to define it using the ID from the JSON the import fails.
Not only the hierarchy of parent / child but also the products refer to the suppliers chosen ID which is included in the JSON.
Could anyone please be so kind to point me in the right direction?
Any help is very much appreciated.
When the import failed I commented the ID part and the import worked. I tried multiplying the ID by 10 in order to avoid using existing ID's but afterwards I read that WooCommerce does not allow you to define category ID's if I understood correctly.
Instead of using the ID, you can use the "slug" field. The "slug" can be defined manually and is unique for each category.