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 Ernest Marcinko Ernest Marcinko 3 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29190
    allroundweb03
    allroundweb03
    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 3 years, 7 months ago by allroundweb03 allroundweb03.
    Attachments:
    You must be logged in to view attached files.
    #29203
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    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
    allroundweb03
    allroundweb03
    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
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    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.