Range slider not working

This topic contains 5 replies, has 2 voices, and was last updated by Mayur Marwa Mayur Marwa 6 years, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6340
    Mayur Marwa
    Mayur Marwa
    Participant

    The plugin works fine until I include a slider for custom field on the front end settings.

    The issue can be found at:
    http://dynamiccrane.visionkraftmwpl.com/manlifts/buy/

    As you will see in the page, the first instance is working properly.
    But the second search with the slider doesn’t work.
    (Both search forms have different shortcodes)

    I get the following error in the chrome dev tools:
    Uncaught TypeError: $(…).noUiSlider is not a function

    Request you to look into the issue and suggest a solution.
    Awaiting your response.

    Regards,
    Mayur Marwa

    #6342
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Thanks for the issue report, I was not aware of it, and it looks like the latest version is affected.

    To fix it go to the Compatibility Settings submenu and change the Javascript source option to either “Minified” or “Minified scoped”. One of them should solve the problem.

    I will check what is causing it and fix it for the next release.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #6346
    Mayur Marwa
    Mayur Marwa
    Participant

    Hi Ernest,

    Appreciate the quick reply.
    I changed the option to “Minified” and the slider has appeared.

    But it does not show any results.
    I have a custom field of cust_height in my posts which I am using for the range filter. I have added this field into 2 of my posts. But the search says no results.

    Request you to investigate the issue.

    #6348
    Mayur Marwa
    Mayur Marwa
    Participant

    HI,

    I guess the custom field value is treated as a string.
    By a little searching on wp forums I figured that:
    The SQL query needs to have “meta_value+0” instead of “meta_value” in the query to return the data as numeric value.
    If this is a possible solution, How do I implement this in the plugin?
    If not, kindly suggest how to treat the custom field value as numeric so that the plugin searches correctly.

    #6349
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    The database does the casting automatically. The values are treated as numerics, as the queries uses a “BETWEEN” statement, which only works with numeric values, I don’t think this is the issue here.

    Do you use another custom field selector by any chance? Checkbox or radio button? If so, then both criteria must match in order to display results.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #6359
    Mayur Marwa
    Mayur Marwa
    Participant

    Great! It works!
    Thanks Ernest!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.