Sorted categories of Woocommerce API products
-
Hello,
I have a problem with the woocommerce API. When I list a product I would like to have the categories in order (main category, sub category, sub sub category) :
– On my test site when I list a product, the categories appear in the order I want.
– However on the production site of one of my customers the result is a bit random…
– If I list a product with 2 categories with IDs less than 200 the result is OK
– If I list a product with 2 categories, the first one < 200, the second one > 200 OK on my test site, KO on the customer site (sub category –> Main category)
– If I list a product with 3 categories, the first < 200, the second < 200, the third > 200, OK on my test site, KO on the client site (sub sub category –> Main category –> Sub category)We tried by disabling all plugins (except the woocommerce one of course), unfortunately it doesn’t change anything. Is there a parameter that could influence the sorting of categories ? The categories are well sorted in the “category” tab of the woocommerce interface.
I don’t understand why it only works with IDs below 200
- The topic ‘Sorted categories of Woocommerce API products’ is closed to new replies.