Forums / Setting Up Categories, Products, Attributes / Product ADDED but not searchable? - WHAT DID I DO WRONG

Product ADDED but not searchable? - WHAT DID I DO WRONG

Views: 925

Results 1 to 8 of 8
8 Jul 2015, 10:47 PM
#1
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Product ADDED but not searchable? - WHAT DID I DO WRONG

Okay, I'm sure this is an easy one that I am simply overlooking.

I am working on a custom script to automatically ADD PRODUCTS from my vendor. You see, they release new products daily, so my script is reading from their web services, importing the products, and updating it into our zencart store.

I am 99.9% there! I have the products import and show up fine on the store front. In other words, I can go to New Products and see them there. I am updating the Products table, Products Description table, and Products to Categories table.

However, I must be missing something, because when I log into my Admin Panel and try to SEARCH for the newly added product, it doesn't show up.

Is there a table or a field that I am not updating which would cause a product to not return when I search for them by name in the Admin area?

  • Jeff
8 Jul 2015, 11:01 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Product ADDED but not searchable? - WHAT DID I DO WRONG

Is a master_categories_id being added on the new Products in the table:
products

Is there a record for the New Product in the table:
products_to_categories

If so, does the:
categories_id

in the table:
products_to_categories

match the:
master_categories_id

in the table:
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!

8 Jul 2015, 11:10 PM
#3
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: Product ADDED but not searchable? - WHAT DID I DO WRONG

Hi AJEH! :)

Ajeh:

Is a master_categories_id being added on the new Products in the table:
products

Yes, the master_category_id is set to a value which matches one of my existing categories.

Is there a record for the New Product in the table:
products_to_categories

Yes, I have three records in there, pointing the product to three different categories.

If so, does the:
categories_id
in the table:
products_to_categories
match the:
master_categories_id
in the table:
products

NO. The master_category_id is 31.......and the three records in the products_to_categories table point to three different values: 1, 3, and 4.

Should there also be a record in the products_to_categories which also points to the master_category as well?

I am at a loss here, because this has to be simple!

If you want to see the product in question, it's this one: http://www.mjmmagic.com/store/frogy-by-snake-trick-p-20659.html

But when I log into the Admin panel and try to search for "FROGY" or anything else in that title, no records are returned.

  • Jeff
8 Jul 2015, 11:14 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Product ADDED but not searchable? - WHAT DID I DO WRONG

Products need a record in the table:
products
products_description
products_to_categories

The table:
products_to_categories

need to contain at a minimum a matching categories_id to the master_categories_id in the table products ...

Also, do you see a new Product in your Admin?

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!

8 Jul 2015, 11:37 PM
#5
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: Product ADDED but not searchable? - WHAT DID I DO WRONG

Ajeh - I think that was it. I wasn't adding the MASTER_CATEGORY_ID as a separate listing to the products_to_categories table.

I was under the (false) assumption that the product_to_categories table was just for ADDITIONAL linked categories, separate from the master category which is defined in the products table.

Now I know that you also need the master category id listed in the products_to_categories table AS WELL AS in the products table.

Thanks for your help, as always! <3

  • Jeff
9 Jul 2015, 12:20 AM
#6
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: Product ADDED but not searchable? - WHAT DID I DO WRONG

Thanks again for the help!

  • Jeff
9 Jul 2015, 3:03 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Product ADDED but not searchable? - WHAT DID I DO WRONG

Thanks for the update that things are now working for you ...

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 Aug 2015, 2:20 PM
#8
outeredge2 avatar

outeredge2

Zen Follower

Join Date:
Mar 2010
Location:
Green Bay, WI
Posts:
362
Plugin Contributions:
1

Re: Product ADDED but not searchable? - WHAT DID I DO WRONG

This sounds like it would be a great add-on..... Did you get it working? Any updates or thoughts on releasing?

Forums are for helping people!! if you don't want to help people then shut up and get off the forum!