From 3242f0114637cdfccc823ddde53407927ad982c3 Mon Sep 17 00:00:00 2001 From: Jenni Nurmi Date: Tue, 9 Jul 2019 15:25:03 +0300 Subject: [PATCH] Add code comments about restriction tha this can't be used with origin --- src/config.js | 2 ++ src/marketplace-custom-config.js | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/config.js b/src/config.js index 13e5560f..ff346017 100644 --- a/src/config.js +++ b/src/config.js @@ -22,6 +22,8 @@ const i18n = { // Should search results be ordered by distance to origin. // NOTE: If this is set to true add parameter 'origin' to every location in default-location-searches.js // Without the 'origin' parameter, search will not work correctly +// NOTE: Keyword search and ordering search results by distance can't be used at the same time. You can turn keyword +// search off by changing the keywordFilterConfig parameter active to false in marketplace-custom-config.js const sortSearchByDistance = false; // API supports custom processes to be used in booking process. diff --git a/src/marketplace-custom-config.js b/src/marketplace-custom-config.js index eb3416ec..3cd8eedb 100644 --- a/src/marketplace-custom-config.js +++ b/src/marketplace-custom-config.js @@ -58,6 +58,9 @@ export const dateRangeFilterConfig = { }; // Activate keyword filter on search page + +// NOTE: If you are ordering search results by distance the keyword search can't be used at the same time. +// You can turn off ordering by distance in config.js file export const keywordFilterConfig = { active: true, };