-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to enable search by SKU? #13
Comments
+1 for this |
+1 |
I know this is very old issue, but I got it to work with overriding Replaced var engine = new Bloodhound({
datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'),
queryTokenizer: Bloodhound.tokenizers.whitespace,
<?php if ($helper->getUseLocalStorage()): ?>
prefetch: { url: '<?php echo $this->getUrl('autocomplete/product/json') ?>' },
<?php else: ?>
remote: { url: '<?php echo $this->getUrl('autocomplete/product/json') ?>' },
<?php endif; ?>
limit: <?php echo $helper->getLimit() ?>,
ttl: <?php echo $helper->getCacheLifetime() * 1000 ?> // milliseconds
}); with var engine = new Bloodhound({
datumTokenizer: Bloodhound.tokenizers.obj.whitespace('bubble_search_field'),
queryTokenizer: Bloodhound.tokenizers.whitespace,
<?php if ($helper->getUseLocalStorage()): ?>
prefetch: {
url: '<?php echo $this->getUrl('autocomplete/product/json') ?>',
filter: function (list) {
return jQuery.map(list, function (item) {
item['bubble_search_field'] = item.name + ' ' + item.sku;
return item;
});
}
},
<?php else: ?>
remote: {
url: '<?php echo $this->getUrl('autocomplete/product/json') ?>',
filter: function (list) {
return jQuery.map(list, function (item) {
item['bubble_search_field'] = item.name + ' ' + item.sku;
return item;
});
}
},
<?php endif; ?>
limit: <?php echo $helper->getLimit() ?>,
ttl: <?php echo $helper->getCacheLifetime() * 1000 ?> // milliseconds
}); NB! Don't forget to clear local storage data if that is turned on. Added Ofcourse you could name Maybe it helps someone. |
@renekorss getting other issue - |
@sumeetmobiwebtech I know it is pretty old, but I got mine to work by ignoring the mods. One catalog search, to have better results, I have changed to "Full Text"... It is a very old search tool, but the fastest and lightest the one around. Does anyone knows how to make it pick up the FinalPrice instead of only the original price? |
No description provided.
The text was updated successfully, but these errors were encountered: