Autocomplete Search vqmod XML

Autocomplete Search vqmod XML
Autocomplete for search bar is made which will be displaying image and product name in a dropdown to give a perfact search.





Make sure you have a VQMOD enable.
Put the file inside xml folder under vqmod.
/vqmod/xml/autocomplete_search.xml

This will work for default theme search easily.
If you have any trouble follow below instructions.
1. search for the below code.

<div id="search" class="input-group">
<input type="text" name="search" value="<?php echo $search; ?>" placeholder="<?php echo $text_search; ?>" class="form-control input-lg" />
<span class="input-group-btn">
<button type="button" class="btn btn-default btn-lg"><i class="fa fa-search"></i></button>
</span>
</div>


2. Replace the code with
[autocompleteSearch]

3. Remove the second occurrence of code also.

4. Now if you know how does xml file works.. you can alter the file.
Place the code [autocompleteSearch] at the file
catalog/view/theme/*/template/common/search.tpl

Check the ajax trigger at
$('input[name=\'search\']').autocomplete
Also check the query
(
PD.name LIKE '%".$data['filter_name']."%'
OR P.model LIKE '%".$data['filter_name']."%'
OR P.sku LIKE '%".$data['filter_name']."%'
OR CD.name LIKE '%".$data['filter_name']."%'
)




Download
  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
1.5.0, 1.5.0.1, 1.5.0.2, 1.5.0.3, 1.5.0.4, 1.5.0.5, 1.5.1, 1.5.1.1, 1.5.1.2, 1.5.1.3, 1.5.2, 1.5.2.1, 1.5.3, 1.5.3.1, 1.5.4, 1.5.4.1, 1.5.5, 1.5.5.1, 1.5.6, 1.5.6.1, 1.5.6.2, 1.5.6.3, 1.5.6.4, 2.0.0.0, 2.0.1.0, 2.0.1.1, 2.0.2.0, 2.0.3.1, 2.1.0.1, 2.1.0.2, 2.2.0.0, 2.3.0.0, 2.3.0.1, 2.3.0.2

Last Update
27 Jan 2017

Created
26 Jan 2017
904 Downloads
10 Comments
shakalyaUttam
shakalyaUttam
Member since: 21 Oct 2016

View all extensions Get Support