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.

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 3 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #47295
    Sena
    Sena
    Participant

    Hi,

    We have been developing app for Multi Vendor Woocommerce and include Ajax Search Pro as one of the plugins (online mizoram by exl available both on android and iOS). We are facing a few problems.

    1. Enabled result page to show 50 items on Ajax Search Pro settings is only for Get method, for Post method the returned result is always 10 leading to loop problem in the app- https://snipboard.io/1yBSPY.jpg
    Is there a solution to this? Do you support the get result option in the Post method? Also, do you support paging? eg https://onlinemizoram.com/wp-json/ajax-search-pro/v0/woo_search?s=test&per_page=10&page=3

    2. Rest API returns only one image URL as such the product only has one Image https://snipboard.io/GfA4Wk.jpg

    I would be really glad if you could help me out with this issue.

    Thanks
    Sena

    #47300
    Ernest Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.