Page 1 of 1

[SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Wed Oct 26, 2011 7:49 am
by middle_road
numerous searches and reading posts have only netted info how to mod v1.4x

I need to include 'model' & 'sku' to the default search. We have parts manuals that customers use that have two
different part numbering schemes. We want to be able to give them the option of quickly searching on the part number.

I also searched the installed files for the v1.4x syntax mentioned in other posts and tried adding
url += '&sku=1' += '&model=1'; in a couple of places in search.tpl
../catalog/view/theme/default/template/product/search.tpl with no luck.


Is there an easy edit possible in v1.5.1.3.1?

Thx,
_mr

Re: adding additional fields to default 'search' - v1.5.1.3.

Posted: Wed Oct 26, 2011 9:46 pm
by Eva30
im using this mod:better_search.xml
all credits:
Kyle Agronick

Re: adding additional fields to default 'search' - v1.5.1.3.

Posted: Wed Oct 26, 2011 10:10 pm
by middle_road
Thanks Eva, I shall give it a try as soon as the coffee pot produces it's brew. ;D

_mr
Eva30 wrote:im using this mod:better_search.xml
all credits:
Kyle Agronick

Re: adding additional fields to default 'search' - v1.5.1.3.

Posted: Thu Oct 27, 2011 1:54 am
by middle_road
...
DRAT! - didn't work out. I've posted the errors out of vqmod.log over on this Thread.

[SOLVED] - I think, maybe...

I edited/changed line No.10 of Kyle's code in 'better_search.xml'

was:

Code: Select all

      	<![CDATA[if (isset($data['filter_tag']) && $data['filter_tag']) {]]>

is now:

Code: Select all

      	<![CDATA[if (!empty($data['filter_name']) && !empty($data['filter_tag'])) {]]>
Search results are now hitting the 'UPC', SKU', & 'Model' fields in our dB...

_mr

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Fri Nov 11, 2011 10:08 pm
by ahmed
Hello,
I just downloaded opencart V 1.5.1.3 and I am totally new to it. I am trying to do a book store where I want the model number field to become ISBN field and when people type ISBN number in search, it should look into the model field too. I found this post which enables the search to look into the model field as well but I dont know where to put this better_search.xml file.

Can anyone please help me understand?

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Tue Nov 15, 2011 4:14 am
by Amuro
I did the modification but the search still does not search for Model ID. Do you think if it is because of the vqmod version installed that is not compatible? Kind of frustrated. Thanks for helping in advance.

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Wed Nov 16, 2011 2:15 pm
by Amuro
Never Mind. I didn't install the VQMOD correctly. Everything works good, except that I want to eliminate the leading or ending space in case customer put those in or copy phrase from places that have spaces before or after the keywords. Any ideas?

Re: adding additional fields to default 'search' - v1.5.1.3.

Posted: Thu Dec 01, 2011 3:15 pm
by werepair
middle_road wrote:...
DRAT! - didn't work out. I've posted the errors out of vqmod.log over on this Thread.

[SOLVED] - I think, maybe...

I edited/changed line No.10 of Kyle's code in 'better_search.xml'

was:

Code: Select all

      	<![CDATA[if (isset($data['filter_tag']) && $data['filter_tag']) {]]>

is now:

Code: Select all

      	<![CDATA[if (!empty($data['filter_name']) && !empty($data['filter_tag'])) {]]>
Search results are now hitting the 'UPC', SKU', & 'Model' fields in our dB...

_mr
confirmed working with 1.5.1.3 with this code change

best regards

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Tue Dec 06, 2011 6:22 pm
by karlopencart
This worked for me also in 1.5.1.3 - god bless vqmod

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Thu Dec 08, 2011 11:46 am
by visnetmedia
Hi can someone please help it doesn't search for model but it does for sku

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Wed Jan 04, 2012 1:53 am
by InternalWealth
worked perfectly for me in 1.5.1.3 - thanks so much!!!!!

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Fri Jan 20, 2012 7:27 pm
by NTCommerce
Hi is it a simple process to get the mod to work with location?
regards
Nigel

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Sat Feb 04, 2012 5:50 am
by scpost
PERFECT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Fri Feb 10, 2012 5:13 am
by NTCommerce
I need to be able to search the manufacturers name and also the location . can the vqmod be adapted to do that?

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Fri Feb 17, 2012 9:28 pm
by next-gen
was:
CODE: SELECT ALL
<![CDATA[if (isset($data['filter_tag']) && $data['filter_tag']) {]]>


is now:
CODE: SELECT ALL
<![CDATA[if (!empty($data['filter_name']) && !empty($data['filter_tag'])) {]]>

working 1.5.1.3
thank you

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Thu Mar 22, 2012 10:39 pm
by loukiad
Works perfectly in OC 1.5.1.3

thanks a lot!

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Thu Mar 29, 2012 8:57 pm
by Amuro
I need the search function to return result only if all the search keywords are included in the description or/and product name. For example, if I type Chevy Tahoe Taillights, the page should only return product that has all 3 words in either the product name or/and description. Currently, if I type in i.e. Chevy Tahoe Taillights in the search box the site returns all Chevy products including non-Tahoe and non-Taillights (www.lenobe.com), and is a listing a few hundred which makes the search function useless.

Any ideas or suggestion?
Thanks much!

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Sat Jul 07, 2012 8:43 pm
by evin
Confirmed. It's working on 1.5.1.3. Thanks.

Re: [SOLVED] adding fields to default 'search' - v1.5.1.3.1

Posted: Tue Sep 24, 2013 11:39 pm
by vijay.priyani
How this will hit on 1.5.4 opencart ?