Product Variations missing from Product Search
-
I’m integrating with the woocommerce rest api and hit an issue when searching production variations. Our app calls for a list of downloads which includes the following steps to populate the view:
1) Fetch all downloads for a users using GET /wp-json/wc/v3/customers/<id>/downloads
2) Pull out the product ids from each download and use them to search products using GET /wp-json/wc/v3/productsTherein lies the problem. The product_ids that come back on the download are linked to a digital variation of a book. The product list api endpoint does not return product variations as part of the search. Product variations do get returned when searching the product itself using GET /wp-json/wc/v3/products/<id>. Is there any query parameter I can add to the list endpoint that will include product variations? Otherwise I’ll need to query each product individually to collect proper urls and images to go along with the downloads.
- The topic ‘Product Variations missing from Product Search’ is closed to new replies.