This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Problem we have been facing when using REST API to FETCH result.

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Problem we have been facing when using REST API to FETCH result. Reply To: Problem we have been facing when using REST API to FETCH result.

#47300
Ernest MarcinkoErnest Marcinko
Keymaster

Hi Sena,

1. Make sure to add the search instance ID to the arguments: https://onlinemizoram.com/wp-json/ajax-search-pro/v0/woo_search?s=test&id=1
Here it’s set to 1, but in your case it’s probably different.

The current v0 API does not support more arguments unfortunately. They will be added later when a more stable v1 is released in the future.

2. That is the image which Ajax Search Pro fetched for the live search results, it is always going to be a single image. If you need more images, you may have to either edit the source code on the API, or use a custom code to add more fields to the asp_data object, or pass on the product IDs to another endpoint to fetch the other images.