Results 1 to 4 of 4

Thread: Advanced search(or Refine Search) is per category, but the price slider is not. Why?

  1. #1
    Thread Starter
    dr27's Avatar
    Join Date
    Feb 2013
    Location
    Romania
    Posts
    11
    Thanks
    1
    Thanked 8 Times in 2 Posts

    Advanced search(or Refine Search) is per category, but the price slider is not. Why?

    The Refine Search function takes into account the category id to display a custom form.
    However the price slider simply selects the minimum and maximum value from the database, regardless of the category.
    Thus it becomes unusable for categories with smaller values and price ranges.

    The customer doesn't care that the website has a luxury car section where the max price is 2 million.
    He only wants to see the used cars within his selected category, e.g. 'under 2000 cc' and max 10 years old.
    Thus the expected and logical behavior would be a price slider that selects the highest price value per category.


    Is that possible in Classipress? If not, how to change it in code?
    Are there any plans to address the Refine search functionality issues in v3.3?


    theme_refine.php
    // queries the db for the custom ad form based on the cat id
    if ( !function_exists('cp_show_refine_search') ) :
    function cp_show_refine_search($catid) {
    global $wpdb;
    $fid = '';

    // get the category ids from all the form_cats fields.
    // they are stored in a serialized array which is why
    // we are doing a separate select. If the form is not
    // active, then don't return any cats.



    Thank you for your assistance

  2. #2
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  3. #3
    kumi's Avatar
    Join Date
    Feb 2014
    Location
    India
    Posts
    255
    Thanks
    19
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    franky's Avatar
    Join Date
    Jul 2011
    Location
    Sarf Lundon Somwere In The Middle
    Posts
    413
    Thanks
    52
    Thanked 9 Times in 9 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help Making Max-Min Price on refine slider based on search results for CP 3.2
    By swaynevds4755 in forum ClassiPress General Discussion
    Replies: 3
    Last Post: November 18th, 2012, 01:48 PM
  2. Price slider questions for Refine Search page
    By rvpatel86 in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: July 9th, 2012, 05:06 PM
  3. Replies: 0
    Last Post: June 16th, 2012, 03:18 PM
  4. Change Default Value of Advanced Search Price Slider
    By fid411 in forum Report ClassiPress Bugs
    Replies: 6
    Last Post: February 1st, 2012, 05:42 PM