This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

A few questions: Filtering products, Filtering results by popularity

Home Forums Product Support Forums Ajax Search Pro for WordPress Support A few questions: Filtering products, Filtering results by popularity

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32907
    tajimadirect95tajimadirect95
    Participant

    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,
    Jacob

    #32917
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi 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
    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 the total_sales custom field.

    #32923
    tajimadirect95tajimadirect95
    Participant

    Hi 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,
    Jacob

    #32933
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    I don’t know if there is a metric for that in WooCommerce, maybe post_views_count, but I don’t know if that actually exists for WooCommerce.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.