- This topic has 10 replies, 3 voices, and was last updated 6 years, 4 months ago by Ross.
-
Ross Moderator(Private) July 25, 2018 at 5:21 pm #183530
Hi Vincent
As Trevor mentioned we won’t be able to do the customisation as its too specific.
However, it shouldn’t be too hard to achieve with a little coding knowledge.
The logic I would use to achieve what you’ve described is as follows:
1) Using Javascript, set a cookie for the value of the region, whenever the search form is submitted (jqueries
.on("submit")
.2) Using PHP, check if you are on the homepage (WP has a few functions for this), and if cookie is set, then change the default in the field, we have a filter for modifying a field – https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object – you’ll want to set:
$input_object['defaults'] = array("your_cookie_value");
I hope that helps.
Thanks
Ross Moderator(Private) July 25, 2018 at 7:31 pm #183549Hi Vincent, if its regarding S&F functionality, of course you can contact us.
Best
-
AuthorPosts