Forums / Setting Up Categories, Products, Attributes / Product deleted from Admin still showing in catalog

Product deleted from Admin still showing in catalog

Views: 2,532

Results 1 to 9 of 9
21 Jan 2010, 9:55 PM
#1
jc8125 avatar

jc8125

Zen Follower

Join Date:
Oct 2007
Posts:
143
Plugin Contributions:
0

Product deleted from Admin still showing in catalog

Ran into a problem today..

A product was deleted from the admin a few days ago. No problem, we do it all the time. The next day, a customer ordered that product. When i went into the catalog and searched, the item did in fact show up. When i go into the admin to investigate, there is no trace of this product. Looked in the database, found the product, and is says it was last modified back in 2009.

So, if one of the db gurus could jump in and give me a hand, i'd appreciate it. I assume i could manually delete from the database, but that would leave two questions:

  1. what possible harm would that cause and
  2. why did it happen in the first place / will it continue.

Tried searching the forums, not much luck. Found a random post or two about a similar problem, but they all had done goofy things to their db prior to the problems.. We haven't manually touched the db in quite awhile.

Running 1.38a, fully patched. couple of mods, but nothing that I could see interfering with the deletion of products.. (and everyone on the cart has been up and running for months with no probs)

thanks in advance..!

23 Jan 2010, 2:26 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Product deleted from Admin still showing in catalog

Check the database tables ...

products <-- is there a products_id for this product?
is there a master_categories_id in this product record?
if there is a product record, what is the products_status set to?

products_description <-- is there a products_id for this product?

products_to_categories <-- is there 1 or more products_id for this product? If so, what are the associated categories_id

If there is an associated categories_id ... look in the table:
categories <-- is there a matching categories_id
<-- also check if there is a matching categories_id for the master_categories_id if there was one

categories_description <-- is there a matching categories_id

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!

25 Jan 2010, 2:19 PM
#3
jc8125 avatar

jc8125

Zen Follower

Join Date:
Oct 2007
Posts:
143
Plugin Contributions:
0

Re: Product deleted from Admin still showing in catalog

Ajeh,

Thanks so much for coming to the rescue! You're a life saver. It did have a master_categories_id - which I actually had checked.. just didn't go the extra step to see if it was a VALID master_cat_id..
:oops:
Changed it to a valid cat_id and whadyya know, there it was in the admin! went ahead and deactivated - and now the "product that won't die", as we affectionately refer to it, is gone from the catalog.

Thanks for your help, as always. Coffee to follow shortly.

25 Jan 2010, 3:17 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Product deleted from Admin still showing in catalog

Thanks for the update that the problem was due to an invalid master_categories_id ...

Thanks also for the coffee to go with my donut this morning ... :cool:

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!

13 Mar 2010, 9:01 PM
#5
drysdaleandco avatar

drysdaleandco

New Zenner

Join Date:
Aug 2009
Posts:
11
Plugin Contributions:
0

Re: Product deleted from Admin still showing in catalog

Ajeh:

Check the database tables ...

products <-- is there a products_id for this product?
is there a master_categories_id in this product record?
if there is a product record, what is the products_status set to?

products_description <-- is there a products_id for this product?

products_to_categories <-- is there 1 or more products_id for this product? If so, what are the associated categories_id

If there is an associated categories_id ... look in the table:
categories <-- is there a matching categories_id
<-- also check if there is a matching categories_id for the master_categories_id if there was one

categories_description <-- is there a matching categories_id

Hi,
I'm having the same problem with a deleted product still displaying but I don't know where to find/check the database tables. How do I check these tables? Where is this info found?

13 Mar 2010, 9:38 PM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Product deleted from Admin still showing in catalog

Your host account should have a CPanel administration feature. (Not the same as the Zencart admin panel).

In C-Panel (or your host's equivalent) there will probably be a mechanism to access the mySQL databases and a tool called phpMyAdmin.

phpMyAdmin is the tool you use to see into the heart of your database.

But tread cautiously... errors using this tool can damage your database, so:

Find a tutorial on phpMyAdmin, and (like I did all those years ago) do a full install of zencart as a TEST site. This can be in a sub-directory on your main domain - or if you have the luxury of another hosting account, do it there.

Then... do your experimenting and learning on that installation, where errors will not be serious.

20 years a Zencart User

13 Mar 2010, 9:41 PM
#7
drysdaleandco avatar

drysdaleandco

New Zenner

Join Date:
Aug 2009
Posts:
11
Plugin Contributions:
0

Re: Product deleted from Admin still showing in catalog

drysdaleandco:

Hi,
I'm having the same problem with a deleted product still displaying but I don't know where to find/check the database tables. How do I check these tables? Where is this info found?

OK. Nevermind. I figured it out.
The product was deleted in the master category but it was still linked to another catagory.
When I searched for it in Admin>products it did not show up in the search results, presumably because it was deleted from the master category. I couldn't find it in Admin anywhere but it was still showing on the live catalogue.
The solution for me was to go to the product in the live catalogue and view the source code. By checking the source code I could see what category it was linked to. And sure enough, when I checked that category, there it was. Was then able to delete it from that cat. and then it stopped displaying.
:smile:

24 Dec 2012, 6:36 AM
#8
easyphil avatar

easyphil

New Zenner

Join Date:
Dec 2012
Posts:
12
Plugin Contributions:
0

Re: Product deleted from Admin still showing in catalog

Hi. Thanks for your post. I could see the source code... but cant seem to see what category it is pointing at.

25 Dec 2012, 7:45 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product deleted from Admin still showing in catalog

What category is it displaying in? (Assuming you have the same issue of a deleted product still showing up.) Look in that category in admin > Catalog > Categories/Products > the particular category, and see if the product shows up there.

If you can't tell which category it is in, post some of the source code where the category/product listing is being output. If you can let us see it live, we can tell what category id to look in.