Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: nuke product image remain

  1. #1
    barber is offline Junior Member
    Join Date
    Dec 2008
    Posts
    29

    Default nuke product image remain

    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 ??

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    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.

  3. #3
    barber is offline Junior Member
    Join Date
    Dec 2008
    Posts
    29

    Default

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

  4. #4
    DanV's Avatar
    DanV is offline Ursus arctos horribilis
    Join Date
    Apr 2006
    Posts
    1,568

    Default

    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.