Forums Forums Search & Filter Pro Custom post meta for price selection

Viewing 10 posts - 1 through 10 (of 12 total)
  • Anonymous
    #52221

    Hi, I want to make a filter that is post meta with range of prices. I used:

    Input type: Range- radio
    Display input as: single field
    ————-
    Te meta key of price
    ————
    UI options
    Min Value:0
    Max Value:2 000 000
    Step: 300000

    I want 2 things,
    1. Customize the range, I want to make one range from 0 to 100 000 and the next one from 100 000 to 300 000 for example.
    2. How do I custom the format of the prize display? Since it’s in spanish, I need this 2000000 be displayed like this 2’000.000 for example.

    Thanks for your time :)!

    Trevor
    #52228

    You mean that you need 2 sliders for one meta field? If yes, that is not possible.

    I have no idea how you would format the number display. But, it will need to be done with javascript. Some places to look:

    http://www.ozkary.com/2014/04/format-currency-with-javascript-and-css.html

    https://css-tricks.com/snippets/javascript/format-currency/

    Anonymous
    #52230

    No, I mean the range, I want to custom the range. For example, I have it set as :

    Min Value:0
    Max Value:2 000 000
    Step: 300000

    So I get this:
    All Items
    0 – 300000
    300000 – 600000
    600000 – 900000
    900000 – 1200000
    120000 – 150000
    150000 – 180000
    180000 – 200000

    But I want this:

    All Items
    0 – 100000
    100000 – 300000
    300000 – 600000
    600000 – 100000
    100000 – 200000

    See? the steps are not always 300000, I want to custom the steps.

    Trevor
    #52243

    Ah, that too is not possible 😉

    Anonymous
    #52245

    You make me sad :(!
    One more little question, I don’t know why but the search is not refreshing the page. If I make the first filter it works perfectly, buet when I make the second (on the result page) it does nothing.

    Do you know what am i doing wrong?

    Trevor
    #52248

    Can you share a link to the page with the search and guide me on data to enter to see the effect?

    Anonymous
    #52249

    I’m working on localhost with xampp :/

    Trevor
    #52302

    Skype?

    Anonymous
    #52681
    This reply has been marked as private.
    Trevor
    #52684

    I have sent a contact request to you (I was on another call). No Spanish I am sorry 🙁

Viewing 10 posts - 1 through 10 (of 12 total)