Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / Search not working (at all)

Search not working (at all)

Locked

Started by chata86 on 23 Dec 2010, 10:27 PM · Views: 1,242

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
23 Dec 2010, 10:27 PM
#1
chata86 avatar

chata86

New Zenner

Join Date:
Dec 2010
Posts:
6
Plugin Contributions:
0

Post #1 by chata86

I've searched the FAQ, and the forums. Seems like a couple of people have had this problem - but there has been no solutions. I'm running 1.3.9h.

When I perform a search (http://diypinball.com) it ALWAYS returns "No products found". All meta-tags on the products are undefined (nuke symbol is black). I tried adding a meta-tags to a product... still nothing results from a search.

I switched to default green template (that seems like a popular reply, to people reporting problems with search) - still nothing results in the search.

When I use the search in the admin, it works great!

Please note, I do get this warning when I edit the products:
WARNING: You have Products in the Top Level Category. This will cause pricing to not work properly in the Catalog.
Is this related?

Thanks!

23 Dec 2010, 11:39 PM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

Categories hold Categories or Products ... not both ...

Do you have Products and Categories in the Top Level? Or Products and Categories in other Categories?

Do you import your Products?

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!

24 Dec 2010, 3:37 AM
#3
chata86 avatar

chata86

New Zenner

Join Date:
Dec 2010
Posts:
6
Plugin Contributions:
0

Post #3 by chata86

I don't really have any categories. The defaults seem to be "new products" and "all products".

All the products were added using the "New Product" button in the Admin.

Nothing was imported.

As I said, I see "WARNING: You have Products in the Top Level Category. This will cause pricing to not work properly in the Catalog." when I add or edit a product. It would seem everything is at the top level. I don't see anything "not working properly with pricing in the catalog".... as that warning claims, but do products in the top level also not fall into the search index? That'd be weird, unexpected, unintuitive, and odd.

24 Dec 2010, 4:51 PM
#4
ajeh avatar

ajeh

Oba-san

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

Post #4 by ajeh

The Catalog is designed to have Products in a Category ...

The search does not work on Products not in a Category ...

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!

24 Dec 2010, 6:12 PM
#5
chata86 avatar

chata86

New Zenner

Join Date:
Dec 2010
Posts:
6
Plugin Contributions:
0

Post #5 by chata86

Ok, that's odd.

BTW, they are in a default category called "top"... But sure, I'll add new categories.

Following the FAQ...

Creating a category
Login to your admin panel, point your cursor at Catalog in the top menu. Choose Categories/Products from the drop down menu.
On the next page click the new category button.

(Problem is there is no "new category button")

24 Dec 2010, 6:19 PM
#6
ajeh avatar

ajeh

Oba-san

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

Post #6 by ajeh

The Top Category is not a real category ... it is just a tag ...

Because there are Products in the Top level ... the New Category button will not show ...

If you run the SQL command:

UPDATE products_to_categories SET categories_id = 1;

You should be able to add a Category ... and assuming it picks up the value categories_id 1, all of your Products will show up 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!

24 Dec 2010, 6:29 PM
#7
chata86 avatar

chata86

New Zenner

Join Date:
Dec 2010
Posts:
6
Plugin Contributions:
0

Post #7 by chata86

Ok. Obviously the lack of "New Category" button is a bug. But I saw your post over here...
http://www.zen-cart.com/forum/showthread.php?t=39001

So I ran...

UPDATE products_to_categories SET categories_id = 1 where categories_id = 0;

which forced the button to appear. I then was able to add a new category. Then to get the products to reappear (so I could move them into the new category) I ran it backwards...

UPDATE products_to_categories SET categories_id = 0 where categories_id = 1;

I suppose there is some SQL I could run to move all products to category 1?

PS: The few products I've moved into the new category can be found in the search - THANKS!

24 Dec 2010, 6:38 PM
#8
chata86 avatar

chata86

New Zenner

Join Date:
Dec 2010
Posts:
6
Plugin Contributions:
0

Post #8 by chata86

My bug report then is this:

  1. Top seems like a category because it's treated like one in the interface. For example "Current Categories: Top". If it's not a category ... well, something should be done about that. Why not treat it as one.

  2. The message "WARNING: You have Products in the Top Level Category. This will cause pricing to not work properly in the Catalog." should also mention "and search will not work properly".

  3. The Add New Category button should always be available, so people can work their way out of a jam like this much more easily.

24 Dec 2010, 6:57 PM
#9
ajeh avatar

ajeh

Oba-san

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

Post #9 by ajeh

The Categories are designed for Categories or Products ... not both ...

When a Category holds a Product the New Categories button is removed ...

When a Category holds a Category the New Products button is removed ...

There a a bazzillion things that can break when you put both Categories and Products in Categories ... we cannot list them all as so many configuration settings can alter what may or may not break ...

Thanks for letting us know you found a work around for your needs ...

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!