Search
Hot Searches
Smok vape coils
Smok vape mods
Smok vape tanks
Smok
Products
()
No results found.
Categories ()
Posts ()
function initMirasvitSearch() {
return {
//initialize Variables
hotSearch: false,
searchResults: false,
noResults: false,
isLoading: false,
isOpen: false,
blockConfig: {“query”:””,”priceFormat”:{“pattern”:”$%s”,”precision”:2,”requiredPrecision”:2,”decimalSymbol”:”.”,”groupSymbol”:”,”,”groupLength”:3,”integerRequired”:false},”minSearchLength”:3,”url”:”https://www.vaporfi.com/searchautocomplete/ajax/suggest/”,”storeId”:”9″,”delay”:500,”isAjaxCartButton”:false,”isShowCartButton”:false,”isShowImage”:true,”isShowPrice”:true,”isShowSku”:false,”isShowRating”:false,”isShowDescription”:false,”isShowStockStatus”:false,”layout”:”1column”,”popularTitle”:”Popular Suggestions”,”popularSearches”:[“Vaporesso”,”Smok vape coils”,”Smok vape mods”,”Smok vape tanks”,”Smok”],”isTypeaheadEnabled”:true,”typeaheadUrl”:”https://www.vaporfi.com/searchautocomplete/ajax/typeahead/”,”minSuggestLength”:2,”currency”:”USD”,”limit”:24,”customerGroupId”:0},
xhttp: false,
noResultsText: ”,
numberResults: ”,
numberResultsUrl: ”,
searchProductsTotal: ”,
searchCategoriesTotal: ”,
searchPagesTotal: ”,
searchProducts: [],
searchCategories: [],
searchPages: [],
searchPosts: [],
searchMap: {
‘magento_cms_page’: ‘Pages’,
‘magento_catalog_category’: ‘Categories’,
‘magento_catalog_product’: ‘Products’,
‘magefan_blog_post’: ‘Posts’
},
hotSearchClickEvent: function (ev) {
var hotSearchClick = event.currentTarget.innerText;
document.getElementById(“search”).value = hotSearchClick;
this.doSearch(hotSearchClick);
},
openSearch: function () {
this.isOpen = true;
searchValue = document.getElementById(“search”).value.length;
if (searchValue >= this.blockConfig.minSearchLength) {
this.hideHotSearch();
} else {
this.showHotSearch();
this.hideSearchResults();
}
},
startSearch: function (e) {
if (e) {
this.isOpen = true;
}
},
closeSearch: function () {
this.isOpen = false;
},
showHotSearch: function () {
this.hotSearch = true;
},
hideHotSearch: function () {
this.hotSearch = false;
},
showSearchResults: function () {
this.searchResults = true;
},
hideSearchResults: function () {
this.searchResults = false;
},
showNoResults: function () {
this.noResults = true;
},
hideNoResults: function () {
this.noResults = false;
},
setNoResultsText(text) {
if (!text) {
return;
}
this.noResultsText = text;
},
setNumberResults(text) {
this.numberResults = text;
},
setNumberResultsUrl(text) {
this.numberResultsUrl = text;
},
resetSearchData: function () {
// Reinitialize Variables to avoid wrong search results.
this.searchPages = [];
this.searchPagesTotal = 0;
this.searchCategories = [];
this.searchCategoriesTotal = 0;
this.searchProducts = [];
this.searchProductsTotal = 0;
},
doSearch: function (query) {
var self = this;
// Min search length
if (query.length 0) {
var res = response.indexes[index];
var map = null;
if (self.searchMap[res.identifier]) {
map = self.searchMap[res.identifier];
self[‘search’ + map] = res.items;
self[‘search’ + map + ‘Total’] = res.totalItems;
}
}
}
self.isLoading = false;
self.hideNoResults();
self.setNumberResults(response.textAll);
self.setNumberResultsUrl(response.urlAll);
if (response.noResults) {
self.setNoResultsText(response.textEmpty);
self.hideSearchResults();
self.showNoResults();
}
}
};
xhttp.send();
}
}
}
The Mixo 40K’s flavor combos are endless. Awesome product and site!
The Mixo 40K’s battery life is insane. Charges fast and lasts long!
Naked 100 Very Berry is good, but not my favorite. Secure delivery!
Geek Bar Pulse’s flavors are nice, but the device feels flimsy. Fast shipping!
GeekVape coils are okay, but installation is tricky. Great customer support!
Funky Republic Ti7000 is fine, but the battery drains fast. Quick checkout!
Naked 100 Cuban Blend e-liquid is smooth. Love the rewards points!