The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
Sasha Maric
Forum Replies Created
-
Sasha Maric in reply to:
Multipel Tags fields(Private) October 7, 2020 at 7:14 am #262152Hi Travor
Thank you once again.
It works perfectly..
Sasha
Sasha Maric in reply to:
Multipel Tags fields(Private) October 6, 2020 at 1:48 pm #262070Sorry if I did not explain it properly 🙂
Function is fine and works fine, but I just want to specify it only for the one search form and for that I have used if($sfid==1893)
Form id from backend of plugin and in html is 1893. So I will only use this function for search form id 1893.
Because I also have form id 1826, 1854, 1852, 1853 and 1851 and here I need to use other intervals.
So I will create new function for each search form with different data-sf-form-id for different intervals.I have 5 search form on 5 different pages, so they are not on the same page .
Hope it makes sense
Sasha
Sasha Maric in reply to:
Multipel Tags fields(Private) October 6, 2020 at 12:59 pm #262056Hi Trevor
Thanks.
Can you just check if it is done correctly with form id if($sfid==1893)
Thanks
//Search & filters hook function update_range_field_mileage($input_object, $sfid) { //make sure we affect the '_sfm_standby_power_esp_kvs_nr' field only if($input_object['name']=='_sfm_standby_power_esp_kvs_nr') if($sfid==1893) { //udpate this field before rendering //all the options are stored in $input_object['options'] as an array $new_options = array(); //create a new "default" option $new_option = new StdClass(); $new_option->value = ""; $new_option->label = "kVA"; array_push($new_options, $new_option); //create a new range option we want to add $new_option = new StdClass(); $new_option->value = "10+50"; //this is the value that goes in the URL, which affects the query $new_option->label = "10 – 50"; //the label can be anything array_push($new_options, $new_option);//create a new range option we want to add $new_option = new StdClass(); $new_option->value = "51+200"; //this is the value that goes in the URL, which affects the query $new_option->label = "51 – 200"; //the label can be anything array_push($new_options, $new_option); $new_option = new StdClass(); $new_option->value = "201+400"; //this is the value that goes in the URL, which affects the query $new_option->label = "201 – 400"; //the label can be anything array_push($new_options, $new_option); $new_option = new StdClass(); $new_option->value = "401+700"; //this is the value that goes in the URL, which affects the query $new_option->label = "401 – 700"; //the label can be anything array_push($new_options, $new_option); $new_option = new StdClass(); $new_option->value = "701+1500"; //this is the value that goes in the URL, which affects the query $new_option->label = "701 – 1500"; //the label can be anything array_push($new_options, $new_option); $new_option = new StdClass(); $new_option->value = "1501+2500"; //this is the value that goes in the URL, which affects the query $new_option->label = "1501 – 2500"; //the label can be anything array_push($new_options, $new_option); //now replace the options with our own custom options: $input_object['options'] = $new_options; } return $input_object; } add_filter('sf_input_object_pre', 'update_range_field_mileage', 10, 2);
Sasha Maric in reply to:
Multipel Tags fields(Private) October 6, 2020 at 12:28 pm #262041This reply has been marked as private.Sasha Maric in reply to:
Multipel Tags fields(Private) October 6, 2020 at 7:56 am #261992This reply has been marked as private.Sasha Maric in reply to:
Multipel Tags fields(Private) October 5, 2020 at 2:53 pm #261891Hi Trevor
That will be great.
Just send me mail i am going to send invitation to. Is it 12 noon Danmark time or UK?
Thanks.
Sasha Maric in reply to:
Multipel Tags fields(Private) October 5, 2020 at 7:16 am #261816This reply has been marked as private.Sasha Maric in reply to:
Multipel Tags fields(Private) October 2, 2020 at 8:44 am #261664Hi Trevor
Thanks.
I am unfortunately not that technical and have only tried your plugin 1-2 times, so I’m not quite sure what you mean. Sorry 🙂
We have ACF field that start from 5 to 3550 and we must display custom posts according to the selected value. e.g 5 – 45 , 50 – 100 , 100 – 200 and so on, as a drop down.
Here you can see how I got it set up, but when I do it as you recommended as solution 2, then nothing happens. it could be that I’m doing it completely wrong 🙂
https://prnt.sc/urpsamhttps://recordit.co/xOddzXyzYM
I recommend this plugin to my customer who needs a little help setting it up properly, so I do it for customer.
Thanks
Sasha Maric in reply to:
Multipel Tags fields(Private) October 1, 2020 at 11:18 am #261564Hi Trevor
Thank you. Great with video and audio and sound was perfect 🙂
I’ve run into another problem.There is a filter that I need to make a copy of with you plugin pro, but I don’t know how I can make drupdown with multipel from – to values. This is the field called power and on our site is an ACF field with value from 5 to 3550. I need to line them up like here on this page where there are multiple selections from the same ACF field value.
https://www.teksan.com/en/generator-sets/
And the other field with 50 Hz and 60Hz are also ACF fields where there are products that fall under 50 or 60 Hz.
Thanks
Sasha
Sasha Maric in reply to:
Multipel Tags fields(Private) September 25, 2020 at 8:11 am #260747Hi Travor
Thanks..
I’m going to wait for the video you’re going to make.Sasha
-
AuthorPosts