I nuke some products. I just discover even I nuke it, all the images of the product still in product folders. This seem irritating if I want to save some space ... any solution ??
I nuke some products. I just discover even I nuke it, all the images of the product still in product folders. This seem irritating if I want to save some space ... any solution ??
That's correct, we don't remove images if you delete the associated product. That's because those images might be in use on other products as well (image filename override), elsewhere on the site, the store owners may be recreating that product, etc.
If you want to change that you can with a little customization. You'd need to add some logic to the nukeRow method in /admin/entityProduct.aspx.cs.
I have a suggestion. Why not put a pop up window when I click on the nuke product, ask " Delete product image ??? " , yes to delete, no not delete. This will take care of customer who want to preserve the image, also take care of customer like me who want to save space.
Any code suggestion ??? I am not a programmer at all ......
It would take a few lines of code attached to the nuke button onclick event handler. There is a bit more too it though, as you have to account for things like image filename override, use sku for image filename, etc. etc.
I'll drop this in the suggestions box.