Forums › Forums › Search & Filter Pro › Custom post meta for price selection
Tagged: custom post type customization
- This topic has 11 replies, 2 voices, and was last updated 9 years, 5 months ago by
Anonymous.
-
Anonymous(Private) July 26, 2016 at 3:17 pm #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: 300000I 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(Private) July 26, 2016 at 3:44 pm #52228You 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
Anonymous(Private) July 26, 2016 at 3:54 pm #52230No, 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: 300000So I get this:
All Items
0 – 300000
300000 – 600000
600000 – 900000
900000 – 1200000
120000 – 150000
150000 – 180000
180000 – 200000But I want this:
All Items
0 – 100000
100000 – 300000
300000 – 600000
600000 – 100000
100000 – 200000See? the steps are not always 300000, I want to custom the steps.
Anonymous(Private) July 26, 2016 at 5:04 pm #52245You 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?
-
AuthorPosts