Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Category removed but product remains

Category removed but product remains

Started by rfree190 on 18 Jun 2014, 7:09 PM · Views: 909

Results 1 to 10 of 10
18 Jun 2014, 7:09 PM
#1
rfree190 avatar

rfree190

Zen Follower

Join Date:
Sep 2007
Posts:
176
Plugin Contributions:
0

Post #1 by rfree190

We had a category with a few products in it. My client removed the category as he no longer sold the products. But, a customer was able to purchase something contained in it after he deleted it.

I checked the database and the product itself is still there. It shows a master category id that is no longer in the categories table.

When you delete a category, is it supposed to also delete all products in the category, or do you have to do that manually?

Thanks,
Rick

18 Jun 2014, 7:24 PM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

I cannot reproduce this issue ...

Was this a clean install of v151 or is this an upgrade?

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!

18 Jun 2014, 8:27 PM
#3
rfree190 avatar

rfree190

Zen Follower

Join Date:
Sep 2007
Posts:
176
Plugin Contributions:
0

Post #3 by rfree190

It was a clean install.
I found the product in the database, and it shows a master_categories_id of 823, but that does not exist in the CATEGORIES table.
I searched the products_to_categories table and see that product is linked to three other categories. Could this make a difference?

Thanks for your help Linda!

18 Jun 2014, 11:37 PM
#4
ajeh avatar

ajeh

Oba-san

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

Post #4 by ajeh

Products have 1 master_categories_id ...

When you delete a Category, all Products in that categories_id that matches the master_categories_id on the Product are deleted ...

Do you have any add-ons 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!

20 Jun 2014, 5:59 PM
#5
rfree190 avatar

rfree190

Zen Follower

Join Date:
Sep 2007
Posts:
176
Plugin Contributions:
0

Post #5 by rfree190

I added Easy Populate 4, Super Orders, Edit Orders, Ceon Back in Stock Notifications, Sitemap XML and Image Handler 4.

20 Jun 2014, 6:29 PM
#6
ajeh avatar

ajeh

Oba-san

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

Post #6 by ajeh

Are you using Linked 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!

20 Jun 2014, 6:33 PM
#7
rfree190 avatar

rfree190

Zen Follower

Join Date:
Sep 2007
Posts:
176
Plugin Contributions:
0

Post #7 by rfree190

Yes we do.

20 Jun 2014, 9:36 PM
#8
ajeh avatar

ajeh

Oba-san

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

Post #8 by ajeh

Did all of the Products in the deleted Category have that categories_id as their master_categories_id set?

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!

20 Jun 2014, 10:53 PM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #9 by mc12345678

Ajeh:

Did all of the Products in the deleted Category have that categories_id as their master_categories_id set?

To add to this question, how was the category deleted? (Interested in knowing what if any impact EP4 maay have had on this situation.)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Jun 2014, 11:08 PM
#10
ajeh avatar

ajeh

Oba-san

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

Post #10 by ajeh

Also, after the Category was deleted, was it noticed right away that these Products were still there? Or, had Easy Populate been used to touch the database before this problem was noticed?

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!