Page 1 of 2

[vQmod] Search model, sku, and upc

Posted: Fri Sep 02, 2011 4:31 am
by drivenbyweb
Currently Opencart only searches the name and description if desired. This changes the default search functionality to also search the model, UPC, and SKU.

Re: [vQmod] Search model, sku, and upc

Posted: Fri Sep 02, 2011 9:45 pm
by werepair
HOW EASY WAS THAT !!!.
ive been thinking of using vqmod for months but never got the hang of it to be honest, so i bit the bullet and installed it using the auto installer ( Bonus ) dropped your file into the vqmod /xml folder refreshed the page and bingo SKU413 was now visable in the search results,,,,, why on earth this isnt a core feature is beyond me, but vqmod made the installation a doddle.... i will now have to see what core edits have been made in my store and try to make the vqmod files for them...

thanks for this
Best Regards

Re: [vQmod] Search model, sku, and upc

Posted: Tue Sep 06, 2011 4:39 am
by aaron1988
Thanks for this great mod :) but i never used it as a VQmod i just edited the xml and put in the product.php file :) as client wanted that lol

Aaron

Re: [vQmod] Search model, sku, and upc

Posted: Sun Sep 18, 2011 7:44 pm
by aaron1988
Hi, there is an error with this mod i tried ti i thought it was modifications i was doing but it wasnt because as soon as i disabled this my products where displaying correctly but as soon as i use your code for the search by model sku etc it messaes the products up puts them all in the wrong places or adds extra ones.

Kind Regards,
Aaron

Re: [vQmod] Search model, sku, and upc

Posted: Sun Sep 18, 2011 10:20 pm
by SandCarver
This mod is amazing - I have been frustrated by the lack of this functionality since I launched my store 9 months ago.

Thank you!

Re: [vQmod] Search model, sku, and upc

Posted: Thu Oct 27, 2011 1:49 am
by middle_road
Just tried this without success on OC v1.5.1.3.1, QMod v2.1.3
Is it a problem with the versions I'm running?

???


From vqmod.log, same errors from (6) attempts...

Code: Select all

---------- Date: 2011-10-26 16:42:54 ~ IP : ... ----------
REQUEST URI : /store/index.php?route=common/home
MOD DETAILS:
   modFile   : ../store/vqmod/xml/better_search.xml
   id        : Better Search
   version   : 0.1
   vqmver    : 1.0.8
   author    : Kyle Agronick
SEARCH NOT FOUND (ABORTING MOD): if (isset($data['filter_tag']) && $data['filter_tag']) {
----------------------------------------------------------------------


---------- Date: 2011-10-26 16:43:13 ~ IP : ... ----------
REQUEST URI : /store/index.php?route=product/search&filter_name=255-300-00360
MOD DETAILS:
   modFile   : ../store/vqmod/xml/better_search.xml
   id        : Better Search
   version   : 0.1
   vqmver    : 1.0.8
   author    : Kyle Agronick
SEARCH NOT FOUND (ABORTING MOD): if (isset($data['filter_tag']) && $data['filter_tag']) {
----------------------------------------------------------------------

Re: [vQmod] Search model, sku, and upc

Posted: Thu Oct 27, 2011 3:17 am
by middle_road
I believe I might have found a fix for v1.5.1.3.1, posted -=- Here-=-.

_mr

Re: [vQmod] Search model, sku, and upc

Posted: Fri Nov 25, 2011 2:44 am
by neopet001
Hi, thank you for your contribution!

I have a question. I created an option named Color with many options like Yellow, Red, Blue v.v....
So now I want to build a Shop by Color by using links to search for those options, will it be a chance ? thank you for your help!!!

Re: [vQmod] Search model, sku, and upc

Posted: Thu Feb 02, 2012 9:59 am
by haydent
middle_road wrote:I believe I might have found a fix for v1.5.1.3.1, posted -=- Here-=-.

_mr
this fix worked for me in 1.5.1.3

Re: [vQmod] Search model, sku, and upc

Posted: Tue Apr 17, 2012 10:41 pm
by rfary
it worked for my 1.5.2.1 thanks.

Re: [vQmod] Search model, sku, and upc

Posted: Tue May 01, 2012 11:19 pm
by SDSkisDan
Hello! This vqmod is great. Would anyone know how to make the UPC field work with more than just numbers? Reason being I'm using the UPC field as a "hidden" tag for older part numbers but apparently the search won't pick up anything unless it's numbers only in the UPC field. I already updated the character limit in the database, but for some reason I can't get the search to pick up UPCs that have both letters and numbers. Any suggestions?

Re: [vQmod] Search model, sku, and upc

Posted: Tue Jun 12, 2012 11:15 pm
by dbassa
Great code drivenbyweb. Thanks.

I leave this code updated for version 1.5.3

Best Regards,

Re: [vQmod] Search model, sku, and upc

Posted: Thu Jun 21, 2012 2:58 am
by bifflowman
This is awesome! Thanks. Using on OC 1.5.2.1

Re: [vQmod] Search model, sku, and upc

Posted: Tue Sep 11, 2012 11:11 pm
by haowind
dbassa wrote:Great code drivenbyweb. Thanks.

I leave this code updated for version 1.5.3

Best Regards,
Thank you!!! You saved my life! :laugh:

Re: [vQmod] Search model, sku, and upc

Posted: Tue Aug 06, 2013 12:41 am
by bonocarmiol
I'm making a site and I need make a personalized search using 4 drop downs list and a search bar. It is posible to do that? I maen, it is posible to make a query using a drop down list value like a keyword? I'm really desperate :-[

Re: [vQmod] Search model, sku, and upc

Posted: Wed Oct 02, 2013 8:10 am
by stokeyblokey
@dbassa - your code for 1.5.3 works well in 1.5.6 :)

I had added a search extension which had this functionality, but it only worked with text input and not numbers - my Model numbers are alpha-numeric so it did not work unless the entire numeric sequence was input, your code has fixed that ;D

Re: [vQmod] Search model, sku, and upc

Posted: Wed Dec 25, 2013 12:04 am
by josiahgarber
Does anyone know of how to get this working for 1.5.6? I tried the xml and it is not working for me.

Re: [vQmod] Search model, sku, and upc

Posted: Fri Jan 10, 2014 3:31 am
by krneki
Doesn't work anymore for 1.5.6. Any solutions?

Re: [vQmod] Search model, sku, and upc

Posted: Sun Jan 26, 2014 4:33 pm
by DragonJ
@dbassa:

Your mod works for v1.5.5.1.

WOW, it's so much better than the default opencart search function! :D

Re: [vQmod] Search model, sku, and upc

Posted: Thu Jun 26, 2014 10:40 pm
by awaix
thanks.... worked like a charm.


i was wondering.. is it possible to include 1 particular attribute in the search as well?
we have products with 2 model numbers each.. and we are using one attribute group to define that model number.

is there anyway we can include that particular attribute group just like this one?
would really appreciate the help.
thanks.