Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › A few questions: Filtering products, Filtering results by popularity
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 11 months ago.
- AuthorPosts
- April 22, 2021 at 10:24 pm #32907
Hi there,
I am curious on how to implement a few functionality features:
1. How can I make the search bar only show certain products (i.e. only products that contain a certain phrase in the title or only products that contain a certain tag)?
2. How can I make the results that are more popular (clicked more often) show up before others when they both match the same searched criteria?Really appreciate the help!
Thanks,
JacobApril 23, 2021 at 9:39 am #32917Hi Jacob,
1. You can do exclusions or inclusions by taxonomy terms, that should cover the tags. Including by certain phrase is not possible.
2. If you are using WooCommerce, then you can try the following configuration: https://i.imgur.com/eBLOCud.png
Best,
WooCommerce stores the average rating in the_wc_average_rating
custom field. If you prefer to order by sale count, then you can also use thetotal_sales
custom field.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
April 23, 2021 at 11:13 pm #32923Hi Ernest.
One quick question on #2. What would I use in that section if I want it to sort by the ones that are most clicked? Wc average rating doesn’t seem to be the same as that.
Thanks,
JacobApril 26, 2021 at 8:36 am #32933Hi!
I don’t know if there is a metric for that in WooCommerce, maybe
Best,post_views_count
, but I don’t know if that actually exists for WooCommerce.
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.