I need one more field that is based on Price but I don't want to display a price list, I just want to display two options is in Ascending and in Descending, and when I apply this field the results should be displayed in ascending or descending order based on price.
Can you please suggest us how this logic we can set
Thank You!
Hello and thank you for contacting the Toolset support.
I assume that you are talking about a view, right? Or is it an archive template?
What editor are you using? The blocks editor or the legacy editor?
If you are using the Blocks editor, you can add a sorting option using the "Add sorting" button. You can then choose the options to sort with(title, date, custom field, etc.). You can also choose to display both sorting directions. Check this screenshot hidden link
Let me know if you are talking about an archive template or using the legacy editor to provide an accurate example. The general idea remains the same, a view can be sorted using default fields(title, date, etc.) or custom fields. For custom fields, you may need to choose the correct value type(sort as a number, sort as a string, etc.)
Hello @Jamal
Hope you are doing good!
We need some more help regarding this "Price" filter which you can see in the below-mentioned links
hidden link
We just need two options to be displayed over here that is ascending and descending options and those should be work properly with actual functionality
Also, let me tell you as you can see other filters are also displaying above so if any user is selecting them and as well as price filter with available these two option that overall functionality should be work properly and displays the correct results for it as well
For your better understanding, I have shown in the below-mentioned video so that you'll get the whole idea
hidden link
(Credentials moved to private reply)
Thanks.
My first reply was related to views built using the blocks editor. This view is built using the legacy editor. However, the template of the view is built using the blocks editor. hidden link
Because this a legacy view, the sorting options need to be added in the "Search and Pagination" section. Check this screenshot hidden link
Unfortunately, the sorting control is always rendered as a dropdown. Toolset does not offer the ability to create two buttons for the sorting controls. You can workaround some HTML and Javascript. Create the button using HTML, then hide the Toolset sorting control using some CSS, and add some Javascript that will trigger the Toolset sorting controls depending on the button's click.
This is a custom code which out of the scope of the support forum. If you are not comfortable with programming, consider hiring a developer. You can check a list of our partners here https://toolset.com/contractors/
I understood that you want the filters and the sorting controls to trigger the search without needing to hit the submit button, right?
If that's the case, you can enable AJAX search in the view's "Custom Search Settings" section. Check this screenshot hidden link
Side note: check the notice in the view, it seems that you need to add filter for that custom post type or remove it from the Query filter section. hidden link and hidden link
I hope this helps. Let me know if you have any questions.