• Resolved ahmedsamyabdelhay

    (@ahmedsamyabdelhay)


    I have a product attribute called flavour and an attribute term called banana with id = 23. I used the following query to filter products to only the products that have that specific attribute term:

    wc.getAsync(products/?attribute=flavour&attribute_term=23).then(data => {
    console.log(JSON.parse(data));
    });

    the console shows all the products with no filtering applied. So what is wrong with the above query ?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘woocommerce rest api: how to query products with specific attribute term’ is closed to new replies.