');
},
onSearchComplete: function(){
$('.578754888_container .ux-loading').remove();
},
onSelect: function (suggestion) {
if( suggestion.id != -1 ) {
window.location.href = suggestion.url;
}
}
});
} else {
$('#578754888_yith-s').autocomplete({
minChars: 3,
appendTo: '.578754888_container',
serviceUrl: woocommerce_params.ajax_url + '?action=yith_ajax_search_products',
onSearchStart: function(){
$('.578754888_container').append('
');
},
onSearchComplete: function(){
$('.578754888_container .ux-loading').remove();
},
onSelect: function (suggestion) {
if( suggestion.id != -1 ) {
window.location.href = suggestion.url;
}
}
});
}
});