• Resolved amitramani

    (@amitramani)


    Hello
    I am fairly familiar with PHP and JS code. I need some guidance on how to add the “Price” field to the Autocomplete drop down results menu. I understand the changes have to be made to the child-theme/algolia/autocomplete.php.

    Can someone please help me?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Are you wanting them to be available for what gets searched as the person is typing? or just as part of the text in the returned results text?

    Thread Starter amitramani

    (@amitramani)

    Hi @tw2113
    Thank you for your response. To answer your question, I want them appearing as part of the drop down menu search results (autocomplete) right below the title.

    After experimenting a bit with the code provided here (https://github.com/algolia/algoliasearch-wordpress/issues/529), I am able to get the price to appear in the search results.

    If anyone is interested, I can post my entire code snippets on how to do this. In fact, my next challenge will be to add other meta data to the results (for example, Average Rating etc).

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    So you got it figured out in the end? or is there still some lingering questions needing help?

    Thread Starter amitramani

    (@amitramani)

    All good, @tw2113 , I got it to work the way I wanted. I was able to add the “price” field to the “wp_posts_products” index. Then I was able to display the Price field in Autocomplete results.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add Price to Autocomplete Results Drop down in Wocommerce?’ is closed to new replies.