Skip Navigation

[Resolved] how to show select all option , and price as sliding bar to define range

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 14 replies, has 2 voices.

Last updated by Juan 6 years, 4 months ago.

Assisted by: Juan.

Author
Posts
#947976

I am trying to replicate.
hidden link
to toolset.
So far the brilliant plugin helped me and i managed to achieve
hidden link

I need a little guide line how to show option of select all or select none Cause there is no option to unselect what is selected.

also i want a price slider similar to what is on hidden link

please help me

#948209

Juan
Supporter

Timezone: Europe/Madrid (GMT+01:00)

Hi Tegan

Thanks for the feedback.

Currently, Views does not upport this kind of filtering GUIs for ranges. As you might know, we do have a filter mode that lets you select a maximum and a minimum pair of values, and then apply the filter within the range. But we do not offer the option to display such controls as a range slider, at least yet.

We do have an internal ticket to add support for this in the future, but I can not offer an ETA on this right now.

Regarding the option to "select all" or "select none", I am not sure I follow the first case. Can you elaborate on what you want to select when you select all? For the case of selecting none, our frontend search forms can include a Reset button that basically does that: unselects any selected option. I think it should work for you.

Hope it helps.

Regards.

#948268

i have tried implementing minimum /maximum and i was not able to do that
can u please guide steps

#948405

Juan
Supporter

Timezone: Europe/Madrid (GMT+01:00)

screenshot-2018-07-16-16-53-21.png

Hi Tegan

Sure!

Let's assume that you have a custom field that you want to filter by, and offer to filter by minimum/maximum value for that field. You should do the following:
- Head to the Search and Pagination editor of the View, and click on the Add new filter button. Select the field that you want to filter by.
- Select the kind of frontend selector that you want to use. I strongly recommend to use select dropdowns or radio buttons for ths.
- Select to use a between comparison. This will make sure that two different controls are created for you, one for the minimum value and another for the maximum value. Set the comparison mode to numeric, since thts is what a between comparison will expect.
- Now, the controls will be generated with steps that will cover the existing field values, which might not be what you want. Because of that, I also recommend selecting the option to use manually entered values, and include as many step values as you want. Using an empty value will set no value at all. In the minimum value selectr, that means to not apply any minimum at all. The same for the maximum value: an empty value means "do not apply a maximum limit".

That should be all. After inserting the filter, everything shoudl work as expected.

Hope it helps.

#948411

oh manual entry I need a drop down to limit values. cant set a text are to let them put what every they want

#948415

Juan
Supporter

Timezone: Europe/Madrid (GMT+01:00)

Hi Tegan

Well, in theory you can use a text input as frontend control, and this was visitors will be able to set their own minimum and maximum values to filter by. However, this might not be very intuitive since they have no reference on what values might look like. But in theory this shoudl also work.

Regards.

#948418

can u please guide how can i define a custom control there?

#948438

Juan
Supporter

Timezone: Europe/Madrid (GMT+01:00)

Hi Tegan

Custom controls inside Views forms are not something that can be done easily, even less explained in a support ticket. The Views filtering mechanism is a complex ngine that combines markup with events listeners with AJAX calls back to the server, and complex operations being managed to run the right query.

In other words, we do not have an API to add custom controls. If you need a specific new filter, please share it here and we can take it as a feature request. As I already mentioned, the ability to use a slider to set maximum and minimum values for a given field is already in our roadmap, without release time estimation.

Please let me know if I can help you with anythign else.

Regards.

#948439

i am a developer can u please let me know files i can modify to add a new control ? I need to add buttons as well as links and slider

#948442

Juan
Supporter

Timezone: Europe/Madrid (GMT+01:00)

Hi Tegan

It is highly discouraged to modify core files form plugins to add or remove functionality, as it will get lost when applying an update. In any case, providing code support for manipulating the plugin codebase is far beyond the purpose of this support forum.

I could point you to our Toolset Contractors for some personal and dedicated code work, but as I said there is no API for adding custom controls to our search forms, and I am sure our contractors will not suggest nor provide custom hacking of core codebase for the plugins.

Please let me know if I can help you with something else.

Regards.

#948471

Dear juna,
i know code will get loss and ill do preventive measures while updating it. Theis plugin is solve my requirement without these modifications.

i would really appreciate if u you please guide me how to add button or link or any other price band option so that i can be able to continue development .

#948755

JUAN
i am still waiting to hear on this its 7 hours + past

the plugin is not much of a requirement if i am not able to implement these . and i might have to cancel license.
and credit will go to you for making be put a refund clame.

#948948

Juan
Supporter

Timezone: Europe/Madrid (GMT+01:00)

Hi Tegan

Thanks for the feedback.

Unfortunately, as I stated above, support does not cover custom code guidelines nor plugin codebase hacking. Even if it did, the things that you are requesting are way too complex for a suppor forum explanation and would require probably a number of days to accomplish along with another number of days for testing.

I will be really sorry if our plugins do not meet your requirements in their current status and with the features they pack.

Please let me know if I can help you with anything else.

Regards.

#948950

i am not happy with you

i want some guideline.

every other plugins / theme developers give tips or atleast tell files which can be modified to do the job.

you are very rude and careless .

#948983

Juan
Supporter

Timezone: Europe/Madrid (GMT+01:00)

Hi Tegan

I am sorry that you feel this way. As I stated above, the request that you are making would demand several days of work for coding and other amount of days for testing, and it would span for a large number of files to modify. In addition, the whole system is being reviewed and will continue to get modifications soon both in files, code and assets, so any change would get broken in our next major release for sure, starting a circle of requests for code guidance, which is not covered by the policy of this support forum.

The frontend search mechanism in Views is a delicate feature and modifying it is not simple at all.

We offer an API to extend Toolset when it does not cover someone's needs. We take feature requests and we extend our APIs on demand. But when our API is not enough, we will never recommend or give assistance on how to modify core plugin files. I am sorry, but that is a fact that is not going to change.

Regards.