Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    143
    Plugin Contributions
    0

    Default 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..!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  3. #3
    Join Date
    Oct 2007
    Posts
    143
    Plugin Contributions
    0

    Default 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..

    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.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    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!

  5. #5
    Join Date
    Aug 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: Product deleted from Admin still showing in catalog

    Quote Originally Posted by Ajeh View Post
    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?

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default 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

  7. #7
    Join Date
    Aug 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: Product deleted from Admin still showing in catalog

    Quote Originally Posted by drysdaleandco View Post
    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.

  8. #8
    Join Date
    Dec 2012
    Posts
    12
    Plugin Contributions
    0

    Default 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.

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.
    Last edited by gjh42; 25 Dec 2012 at 08:47 PM.

 

 

Similar Threads

  1. v151 Deleted product still showing under "New Products!"
    By Fly130 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 6 Dec 2012, 02:03 AM
  2. Deleted Stock still showing - HELP
    By Scrappyfeet in forum General Questions
    Replies: 8
    Last Post: 13 Jan 2012, 02:59 AM
  3. Deleted countries are still showing!
    By mdivk in forum Basic Configuration
    Replies: 10
    Last Post: 27 Sep 2011, 02:14 PM
  4. Replies: 3
    Last Post: 8 Dec 2006, 06:10 AM
  5. Still Showing: This product was added to our catalog
    By Paradigm81 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 14 Oct 2006, 01:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg