Hi,

when a product is deleted the references to this product are not deleted in uc_product_kits.

The kit is added to the cart, but is not visible. After manual delete in the DB, the kits show up in the cart.

CommentFileSizeAuthor
#1 587200_delete_product_kit.patch1.85 KBIsland Usurper

Comments

Island Usurper’s picture

Status: Active » Needs review
StatusFileSize
new1.85 KB

That's a good idea. In addition, since product kits are required to contain products, if the deleted product is the last one in any kit, the kit should be deleted as well. Fortunately, there's a confirmation form for deleting products individually, so this patch adds a warning saying how many product kits will be deleted as well. There's not much I can do for someone deleting products en masse, but one would hope that they know what they're doing.

Island Usurper’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)
Issue tags: -product_kit, -kit, -delete product

Automatically closed -- issue fixed for 2 weeks with no activity.