Forums / Basic Configuration / Search box in Admin not searching in product name?

Search box in Admin not searching in product name?

Views: 1,086

Results 1 to 7 of 7
7 Dec 2011, 1:23 PM
#1
rudyh01 avatar

rudyh01

New Zenner

Join Date:
May 2006
Posts:
3
Plugin Contributions:
0

Search box in Admin not searching in product name?

Hi,
I'm pretty green with Zencart and php programming, but someone else helped me installing the shop version 1.3.9h, and it works generally OK on an external Linux Apache server.

We seem to have an odd bug though: when I'm in the admin section Catalog and try to look for a product title in the search box, nothing shows up, although the product with that name is certainly listed, also searching one word of the title does not bring up the product. Is it possible that the search function does not include searching in the product title, or could there be another bug? To clarify, the search results show results from the product description, but not from the product name.
We don't know in which php file the actual search function is hiding out, so we cannot even check the coding for it.

Thanx in advance!

8 Dec 2011, 12:48 AM
#2
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Search box in Admin not searching in product name?

Is it possible that the search function does not include searching in the product title

It should produce results searching on the product title, so there is definitely something wrong. Has it worked previously and now stopped working, or never worked? What do you mean by "external" server?

The best way to learn is to try stuff. But, back it up first.

8 Dec 2011, 1:39 AM
#3
rudyh01 avatar

rudyh01

New Zenner

Join Date:
May 2006
Posts:
3
Plugin Contributions:
0

Re: Search box in Admin not searching in product name?

Hi RescoCCC,

As far as I can tell, it probably never worked; we may never have noticed it before actually.

With external server, I meant that I do not run the server myself, but use a third-party host, sorry for the confusion.

Would you have any idea in which php file the search function is defined, and what the code should read?

Love & clear light,
Rudy

8 Dec 2011, 2:48 AM
#4
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Search box in Admin not searching in product name?

I think it's your_admin_folder/categories.php. No idea what the code should read. One of the real Zenners will have to address that.

The best way to learn is to try stuff. But, back it up first.

8 Dec 2011, 9:57 AM
#5
rudyh01 avatar

rudyh01

New Zenner

Join Date:
May 2006
Posts:
3
Plugin Contributions:
0

Re: Search box in Admin not searching in product name?

Thank you RescoCCC.

So are there any 'real Zenners' who could help me out here?

Love & clear light,
Rudy

13 Dec 2011, 7:30 AM
#6
pbaker avatar

pbaker

New Zenner

Join Date:
Nov 2011
Posts:
4
Plugin Contributions:
0

Re: Search box in Admin not searching in product name?

I have a similar problem.My products are recognised by an I.D number. I enter the number and the drop down box shows the number but when i click on it for search I just get the message no item.
Were do i go to fix it.
I am hoping there is a simple solution to match my inexperience.
Thanks for any help
Pauline

13 Dec 2011, 2:47 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Search box in Admin not searching in product name?

You could customize the file:
/includes/modules/pages/advanced_search_result/header_php.php

and add in your search for your I.D number to the $where_str ...

Example: to search on the products_id you would need to add in something like:

        $where_str .= " OR p.products_id
                          = ':keywords'";

prior to one of the $db->bindVars in there ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!