Range – Slider not working

Forums › Forums › Search & Filter Pro › Range – Slider not working

Tagged: 

Viewing 10 posts – 1 through 10 (of 13 total)
  • Anonymous
    #13826

    Hello,

    I bought this product only for the range slider function and it is not working.

    I am using it to filter a price range using a custom field’s post meta.

    I have one listing as I test things out at the moment… priced at 2.00(tried 2 , $2.00 and $2 as field values as well).

    The listing shows when filtered for 0 – 50. When I moved the slider from the 1-3 range, no results are found. When I filter 0 – 0, the item is displayed.

    Here are some of my search form settings…

    http://postimg.org/image/xob4slryt/

    I also thought maybe the custom field meta wasnt being search so I added a plugin called Custom Fields Search and added the field but that did not fix the problem either.

    I really dont want to ask for a refund. I really love your plugin. I just hope we are able to troubleshoot this problem! I will try whatever you ask me too.

    Regards

    http://postimg.org/image/xob4slryt/

    Ross Moderator
    #13834

    Hey Ryan

    Ok so lets try a couple of things…

    1) remove the other plugin you installed
    2) create a new meta field, assign some values to a few posts (call it something else, and only enter values as whole numbers (ie 2, 10 etc – no currency symbols and no decimal places).
    3) create a new field in your search from for S&F – setup as range slider

    Let me know when you have done this and if its working, if its not I’ll need to see a link in order to be able to help further.

    Thanks

    Anonymous
    #13884
    This reply has been marked as private.
    Ross Moderator
    #13894
    This reply has been marked as private.
    Anonymous
    #13895
    This reply has been marked as private.
    Ross Moderator
    #13899
    This reply has been marked as private.
    Anonymous
    #13901
    This reply has been marked as private.
    Ross Moderator
    #13904
    This reply has been marked as private.
    Anonymous
    #13907
    This reply has been marked as private.
    Ross Moderator
    #13910

    *edit* making this visible for any users with WCK

    OK I can see the problem here

    WCK is storing the meta data in a non standard way…

    Basically, if you had a price meta field, you would expect the value of this field to only contain the price… but it does not..

    Eg… Woocommerce adds a price custom field to all products, the data as an example would look like this if you did a var_dump like we did for your site:

    ["_price"]=>
      array(1) {
        [0]=>
        string(1) "10"
      }

    This means the price was set to 10.

    What WCK is doing is this:

    ["rosstest"]=>
      array(1) {
        [0]=>
        string(40) "a:1:{i:0;a:1:{s:8:"rosstest";s:2:"10";}}"
      }

    Notice in the first example we have

    string(1) "10"

    And in the test field I made for your site:

    string(40) "a:1:{i:0;a:1:{s:8:"rosstest";s:2:"10";}}"

    It is storing a lot of extra information in the field, such as the name as well as the value (and it’s serialising the data) – this makes it unsearchable – you can’t even use WP_Query to create a query on the meta data generated by that plugin – I personally think this is a very bad implementation – but I guess they may have solutions for this in their docs.

    In this case, I would recommend to use the Advanced Custom Fields plugin – I’ve used it many times, and it stores meta data cleanly and doesn’t stop it from being searchable – I’m sure there are plenty of others, it just seems like WCK is making life difficult!

    Hope that makes sense.

    Thanks

Viewing 10 posts – 1 through 10 (of 13 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.