#2221 new
Ben Andersen

Category product count does not clear when products deleted

Reported by Ben Andersen | April 13th, 2013 @ 05:01 AM

The category product count seen in the categories widget and the categories page in the backend (wp-admin/admin.php?page=shopp-categories) should be updated to the actual number of products in the category.

Steps to Repeat
  1. Create a category
  2. Assign 10 products to the category
  3. Add a category widget with "Show product counts" checked
  4. Check that the category widget displays (10) after category name
  5. Delete a product
    The category count is still 10 both in the widget and in the backend categories manager. Even if you empty trash!
    If you first remove the category on the product before deleting it there is no problem, the count is reduced. But if you have emptied trash there's no way to do that..

See screenshots attached, all products are deleted and trash is emptied. Still (6) is displayed as product count!

Environment

WordPress Version: 3.5.1
Shopp Version: 1.2.5
Shopp Install: fresh

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Plugin e-commerce for WordPress

Shared Ticket Bins

People watching this ticket