We’re facing a peculiar issue - where we’re trying to fetch search suggestions from the fdk-search action component in our theme. we’re using the same function used in other themes like Astra -
searchData.fetchSuggestions(this.searchText,8)
But the API call isn’t being made whenever we input a text and there are no console errors. This is our code where it’s not working -
and this is the code for Astra theme in one of the sales channel where it’s working -
<input
class=“search__input–text font-body”
type=“text”
id=“searchInput”
autocomplete=“off”
v-model=“searchtext”
:placeholder=“isDoubleRowHeader ? ‘Search’ : ‘’”
@keyup.enter=“getEnterSearchData(searchData)”
@input=“searchData.fetchSuggestions(searchtext, 8)”
@focus=“isSearchFocused = true”
@blur=“checkInput()”
/>
Could someone please help us in identifying the issue? Thanks!
@Anand please allow us some time and please share the company, sales channel, and env details here. we will get back to you with a detailed solution regarding this issue
Can please share, where you have used the wrapped-up above code snippet inside the FDK search action component or please share the repo clone link and branch
Hi, @Anand This problem concerns the FDK auto-complete API within the catalog core service. The API call originates from UI, but the retrieved data is currently empty. We have reported this issue to the appropriate developer. We will inform you as soon as the problem is addressed and resolved.
This was a data loader sync issue on the sales channel level, In the future if you encounter any such issue on lower env try to reset the inventory setting by re-selecting the store and brand under the sales channel → settings → inventory.