Post by middle_road » Wed Oct 26, 2011 7:49 am

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
Last edited by middle_road on Thu Oct 27, 2011 3:17 am, edited 1 time in total.

Newbie

Posts

Joined
Sun Oct 23, 2011 2:53 am
Location - East TN

Post by Eva30 » Wed Oct 26, 2011 9:46 pm

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

User avatar
New member

Posts

Joined
Fri Sep 09, 2011 4:17 pm

Post by middle_road » Wed Oct 26, 2011 10:10 pm

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

Newbie

Posts

Joined
Sun Oct 23, 2011 2:53 am
Location - East TN

Post by middle_road » Thu Oct 27, 2011 1:54 am

...
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

Newbie

Posts

Joined
Sun Oct 23, 2011 2:53 am
Location - East TN

Post by ahmed » Fri Nov 11, 2011 10:08 pm

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?

Newbie

Posts

Joined
Fri Nov 11, 2011 10:04 pm

Post by Amuro » Tue Nov 15, 2011 4:14 am

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.

New member

Posts

Joined
Sat Mar 26, 2011 9:05 am


Post by Amuro » Wed Nov 16, 2011 2:15 pm

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?

New member

Posts

Joined
Sat Mar 26, 2011 9:05 am


Post by werepair » Thu Dec 01, 2011 3:15 pm

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

User avatar
Active Member

Posts

Joined
Sat May 28, 2011 2:54 pm
Location - United Kingdom

Post by karlopencart » Tue Dec 06, 2011 6:22 pm

This worked for me also in 1.5.1.3 - god bless vqmod

User avatar
New member

Posts

Joined
Tue Oct 05, 2010 11:19 pm

Post by visnetmedia » Thu Dec 08, 2011 11:46 am

Hi can someone please help it doesn't search for model but it does for sku

Active Member

Posts

Joined
Fri Feb 12, 2010 7:17 am

Post by InternalWealth » Wed Jan 04, 2012 1:53 am

worked perfectly for me in 1.5.1.3 - thanks so much!!!!!


Posts

Joined
Fri Dec 23, 2011 8:03 am

Post by NTCommerce » Fri Jan 20, 2012 7:27 pm

Hi is it a simple process to get the mod to work with location?
regards
Nigel

New member

Posts

Joined
Tue Jun 14, 2011 7:51 pm

Post by scpost » Sat Feb 04, 2012 5:50 am

PERFECT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

New member

Posts

Joined
Thu Nov 10, 2011 12:51 am

Post by NTCommerce » Fri Feb 10, 2012 5:13 am

I need to be able to search the manufacturers name and also the location . can the vqmod be adapted to do that?

New member

Posts

Joined
Tue Jun 14, 2011 7:51 pm

Post by next-gen » Fri Feb 17, 2012 9:28 pm

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

User avatar
Newbie

Posts

Joined
Wed Nov 09, 2011 12:53 pm

Post by loukiad » Thu Mar 22, 2012 10:39 pm

Works perfectly in OC 1.5.1.3

thanks a lot!

New member

Posts

Joined
Fri Oct 28, 2011 11:45 pm

Post by Amuro » Thu Mar 29, 2012 8:57 pm

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!

New member

Posts

Joined
Sat Mar 26, 2011 9:05 am


Post by evin » Sat Jul 07, 2012 8:43 pm

Confirmed. It's working on 1.5.1.3. Thanks.

Newbie

Posts

Joined
Sat Jul 07, 2012 8:41 pm

Post by vijay.priyani » Tue Sep 24, 2013 11:39 pm

How this will hit on 1.5.4 opencart ?

Newbie

Posts

Joined
Mon Jul 23, 2012 6:57 pm
Who is online

Users browsing this forum: No registered users and 8 guests