LoginLogin  Blog About
Search:

Support » Knowledge Base » Shop-Script » Tips & Instructions »

How to avoid removal of image files when products are deleted from the catalog?

When products are deleted from the WebAsyst Shop-Script catalog, their image files are automatically removed from the server. To avoid removal of product image files, change the permissions value for directory published/publicdata/DATABASE_KEY/attachments/SC/products_pictures/ so that the server user running PHP scripts is not able to modify the contents of that directory. You can do that by means of an FTP client or the file manager in your web hosting control panel. After products have been deleted, restore the original permissions.

Example: If the original permissions value was 755, change it to 644 to keep the images of deleted products.