How do I determine the primary category for a product via the REST API
-
Hi, I am writing an import, to import woo products into our system. We have something similar to Product Categories, but we use only one per product. I want to set the Category to product’s primary Category as per the Woo Product edit page. With the REST API, I get the array of Categories but there is no “primary” or “default” boolean that tells you which is set as primary. the only thing I can see from the data is that it looks like it is the first one. in the array.
Any ideas?
Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How do I determine the primary category for a product via the REST API’ is closed to new replies.