Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › logic problem
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 4 years ago.
- AuthorPosts
- November 18, 2019 at 2:12 pm #24609
https://homead.org/. please check the ajax filter . the problem is that. is not searching as it is expected. i need it to search with each individual dropdown, rather than only giving results when both dropdown menus and the price range have been set. if i set only, for example. sales in central london and press search i expect all sales in central london to be displayed, but Ajax is only displaying results when all filter options are selected. Also, the property id text box , when filled , and no other filter options filled, and press search, is not giving any results, because Ajax expects all filters to be selected with options. I changed the logic to OR. but still problem persists. Please help me . thank you. oscar
November 19, 2019 at 11:00 am #24626Hi,
The plugin should work exactly as you described, so I believe the drop-down values are not set correctly.
I assume you use a custom field filter for the property type and the property category. I see, that the “Select” option value is also set to “Select”, which is not correct, as the plugin will try to match these field values with the “Select” string.
To correct that, make sure, that the “Select” option has no value set for both filters, like so:
– Property type: https://i.imgur.com/2j19Rht.png
– Category: https://i.imgur.com/CqGDV86.pngThis will yield the non-selected values properly, as an empty value, and very likely resolve the issue.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 19, 2019 at 11:27 am #24629excellent. It works now. Thanks. If i may give some constructive feedback:
– explain [what you just taught me ]within Ajax itself
– separate the edit icons from the delete icons
– offer dropdowns for categories. Everybody uses post categories, but the checkboxes Ajax offers for categories dont work well on ipad or phone as they are contained within a box
– Remove unnecessary options. Trying to find the important options is like trying to find a needle in a haystack.November 19, 2019 at 2:01 pm #24636Hi!
Thank you very much for the feedback, I really appreciate it 🙂
Addition:
– Drop-downs for categories are actually possible, via the display mode option here.
The rest is of course welcome 🙂If you don’t mind, I will close this topic soon and mark it as resolved, feel free to open another one if you have other questions or issues.
If you like the plugin, feel free to rate it on your codecanyon downloads page, it’s greatly appreciated.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.