:root { –ProductCard_Loading-white: url(“//www.skinnydiplondon.com/cdn/shop/t/550/assets/loading-white.svg?v=58503887931058171671692273892”); –ProductCard_Loading: url(“//www.skinnydiplondon.com/cdn/shop/t/550/assets/loading.svg?v=159135240493580278011692273893”); }
klevu.interactive(() => { var root_url = window.routes.root_url.length > 1 ? window.routes.root_url : ” var options = { powerUp: { landing: false }, url : { landing: root_url + ‘/pages/search-results’, // your Shopify Search Results Page search: klevu.settings.url.protocol + “//eucs9v2.ksearchnet.com/cs/v2/search”, }, search: { minChars: 0, searchBoxSelector: ‘.hd-Banner_SearchInput’, apiKey: “klevu-15385026989828655”, }, analytics: { apiKey: “klevu-15385026989828655”, }, theme: { modules: { resultInfiniteScroll: { searchResultsPage: { enable: true } } }, quickSearch: { loadDefaultStyles: false }, landing: { loadDefaultStyles: false }, catnav: { loadDefaultStyles: false }, setTemplates: [{ scope: ‘quick’, selector: ‘#BAO_klevuQuickTemplateBase’, name: ‘klevuTemplateBase’, },{ scope: ‘quick’, selector: ‘#BAO_klevuQuickPopularSearches’, name: ‘kuTemplatePopularSearches’, }, { scope: ‘quick’, selector: ‘#BAO_klevuQuickRecentSearches’, name: ‘kuTemplateRecentSearches’, },{ scope: ‘quick’, selector: ‘#BAO_klevuQuickTrendingProducts’, name: ‘klevuTrendingProducts’, },{ scope: ‘quick’, selector: ‘#BAO_klevuQuickAutoSuggestions’, name: ‘klevuQuickAutoSuggestions’, }, { scope: ‘quick’, selector: ‘#BAO_klevuQuickCategorySuggestions’, name: ‘klevuQuickCategorySuggestions’, },{ scope: ‘quick’, selector: ‘#BAO_klevuQuickProducts’, name: ‘klevuQuickProducts’, },{ scope: ‘quick’, selector: ‘#BAO_klevuQuickNoProducts’, name: ‘noResultsFoundQuick’, },{ scope: ‘quick’, selector: ‘#BAO_klevuQuickNoProductsPopularSearches’, name: ‘quickNoResultsPopularSearches’, },{ scope: ‘quick’, selector: ‘#BAO_klevuQuickNoResultsPopularProducts’, name: ‘quickNoResultsPopularProducts’, },{ scope: ‘all’, selector: ‘#BAO_klevuProductBlock’, name: ‘klevuQuickProductBlock’, }, { scope: ‘all’, selector: ‘#BAO_klevuProductBlock’, name: ‘productBlock’, }, { scope: ‘all’, selector: ‘#BAO_klevuProductBlock’, name: ‘klevuQuickTrendingProductBlock’, }, ] }, }; klevu(options); }); // Define a new custom event, which will fire after SRLP has initialised klevu.coreEvent.build({ name: “setRemoteConfigLandingOverride”, fire: function () { if (klevu.getSetting(klevu,”settings.flags.setRemoteConfigLanding.build”, false)) { return true; } return false; }, maxCount: 150, delay: 100 }); // Listen in to our custom event, to make our overrides klevu.coreEvent.attach(“setRemoteConfigLandingOverride”, { name: “attachRemoteConfigLandingOverride”, fire: function () { klevu.search.landing.getScope().chains.request.control.addAfter(“initRequest”, { name: “setInitItemPerPage”, fire: function (data, scope) { klevu.each(data.request.current.recordQueries, function ( key, query ) { query.settings.limit = 32; query.filters.filtersToReturn.options.limit = 250; // Increase number of filters – default is 10 }); } }); klevu.search.landing.getScope().chains.template.events.add({ name: “hideLoadMoreButtonForWindowScroll”, fire: function (data, scope) { return true; } }); window.onscroll = function (ev) { if ((window.innerHeight + Math.ceil(window.pageYOffset)) >= document.body.offsetHeight – 50) { var hasAlreadyTriggered = klevu.getObjectPath(klevu.search.landing.getScope().data, “context.triggeredFromInfiniteScroll”); if (!hasAlreadyTriggered) { return true; } } }; klevu({ powerUp: { landing: true } }); } });
0) { %>
Sorry.
Sorry you couldn’t find anything, what do you think of these suggestions?
Reviews
There are no reviews yet.