You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Good day!
On my site I have products with names like 'essential cctv system' and when just typing in the phrase 'essential system' the AJAX popup suggests the correct products. However when hitting enter to view these in the search results page you get a blank result back?
It's as if when the results page loads it defaults to 'Exact Phrase' although it has 'Any Word' selected as the advanced search type should you want to try again, which would bring up too many irrelevant results if used. How do we set the default search to be 'All Words' on the results page?
Thanks again...
Offline
Under System > Displays > Display Includes, edit the 'Skin Widget Mini Store Search' include. Find:
$this->xhtml_quickform_header($formid,'ecom','prodsearchp',array());
Change to:
$this->xhtml_quickform_header($formid,'ecom','prodsearchp',array('ecom--prodsearch--type' => 'ALL'));
Offline
HI Nick,
Could you please take a quick look at this:
If you go to http://www.justmountainbikes.co.uk/ and in the quick search type 'ghost se' or 'ghost se 2013' the ajax list gives you what it should, the Ghost SE bikes only. Even with the search settings above set to ALL when you proceed to the results page, you end up with those models as well as the Ghost Cross and TR bikes, which I can't seem to get rid of or understand why they are appearing in the results?
Even going to advanced search and choosing exact they still show up?
Offline
It looks like it might be because of the keywords. For example, "Ghost TR Lady 1800 Trekking Bike 2013" has the following keywords associated with it: "Ghost SE 1200 Hardtail Bike 2013, Ghost mountain bike, hardtail bike". Hence, why the CCP search would pull them up.
Offline
The ajax search searches based on these fields:
id, name, prodnum
The regular search searches based on these fields:
id, name, prodnum, keywords, descshort
To change the fields used by the regular search, edit the $prod_sf array at the top of the prodsearchsql() function in {private}/apps/ecom/ECOM_Prod/ECOM_Prod.php.
Offline