On a store running XC 4.6.3 I need to modify the quick search so that an exact word/phrase match is found..
The code I have at the moment is as follows:
Code:
<form method="post" action="search.php" name="productsearchform">
<input type="hidden" name="simple_search" value="Y" />
<input type="hidden" name="mode" value="search" />
<input type="hidden" name="posted_data[by_title]" value="Y" />
<input type="hidden" name="posted_data[search_in_subcategories]" value="Y" />
<input type="hidden" name="posted_data[by_descr]" value="N" />
<input type="hidden" name="posted_data[including]" value="all" />
<input type="hidden" name="posted_data[extra_fields][1]" value="Y" />
<input type="hidden" name="posted_data[by_sku]" value="Y" />
<input type="text" name="posted_data[substring]" class="text default-value" value="Keyword Search" />
<input class="image-button btn-search" type="image" src="/store/skin/common_files/images/spacer.gif" alt="" />
I tried changing the parameter for
posted_data[including] to
"phrase" but that does seem to have resolved it ...
Can anyone help?
Cheers
Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4
Chamber Internet - Lancashire, United Kingdom
http://www.chamberelancs.co.uk