• Resolved akashthakor

    (@akashthakor)


    Hi there,

    This is really a great plugin. I have been using this for my website as well as for the APP too. I am using the REST APIs to connect my app with the website. In get_products API
    we’ll get the product_id and price. How can I add product name and product image too in the same response?

    Thanks in advance!

    • This topic was modified 5 years, 9 months ago by akashthakor.
Viewing 1 replies (of 1 total)
  • Plugin Author templateinvaders

    (@templateinvaders)

    Hi @akashthakor

    You can hook filter ‘tinvwl_api_wishlist_get_products_response’ to modify get_products response. Just loop over the original response and use wc_get_products() for an array of required product ids. I hope it will help you.

Viewing 1 replies (of 1 total)

The topic ‘Product name and product image in get_product REST api’ is closed to new replies.