PRO Plugin Sort on price not working correctly

Home Forums Product Support Forums Ajax Search Pro for WordPress Support PRO Plugin Sort on price not working correctly

This topic contains 3 replies, has 2 voices, and was last updated by

 
Keymaster
1 year, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29190

    Participant

    The title PRO Plugin Sort on price not working correctly is NOT correct sorry!
    It should be: “AJAX PRO: Custom field filter not showing the right results”

    On this page: https://handwerkmarkt.nl/allround-web-test/ is shown our ajax form.

    We have added a custom field “winkelnaam” this is the store name of the sellers on the platform. But if we select a “winkelnaam” the filter ignores the input and shows not only the result of that store.

    The filter is in the backend called “Homepage”. (https://handwerkmarkt.nl/wp-admin/admin.php?page=asp_settings)

    • This topic was modified 1 year, 5 months ago by  allroundweb03.
    Attachments:
    You must be logged in to view attached files.
    #29203

    Hi,

    Thank you very much for all the details!

    The issue is, that you are using an user meta field as the filter, but trying to filter a post type (product). User meta fields are to filter user type results, and not post types – it is not possible, as there is no direct relation between them.

    Best,
    Ernest Marcinko

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


    #29204

    Participant

    Hi,

    Thank you for the quick response.

    Is there any work around or hooks/filters that we can use to manipulate the filter or results.
    And can that hook/filter access the user meta field that is chose on the frontend.

    Many thanks.

    #29215

    Sure, if you want to make changes to the fornt-end filters (visually), then check the filters API. If you want to change the meta query then using the asp_query_args hook may help. The asp_results hook allows changing the final results array.

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.