Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

deleting images automatical, when product is deleted?


Guest

Recommended Posts

Posted

Hi,

 

"Version 2.1"

 

The problem is that when i remove a product with the admin tool, the product is removed, but the image will stay in the image directrory.

 

I thought that, wen you remove a product, the image was removed automatical?

 

Is there someone who knows how to solf the problem?

Posted

rdbruin wrote:

The problem is that when i remove a product with the admin tool, the product is removed, but the image will stay

 

I agree.

But actually I think this should be a feature request.

 

At the moment it is a feature when deleting a category.

 

It's a bit troublesome to delete the product through your browser, and then start the FTP program to remove the image(s).

A clean sweap would clear the site for outdated information.

 

The problem is that theres a lot of variants to this problem:

Is the product copied to other categories?

Is contrib Big Images installed?

Is contrib More images installed?

 

Has anybody made a hack / mod in this area?

Best Regards

olby

Posted

I think that the main reason that this has not been implemented is that some stores use the same image for multiple items and that could be a dangerous problem. I think that a great solution to this would be use the PHP and Mysql BLOB command so that there is no longer an image directory at all and instead all of the information and images are stored in the database.

 

--Gary

Posted

Blobbing your images in the db will make it way too heavy, don't think it's a good idea.

 

It should be fairly simple to make a 'delete image too' checkbox in the admin. Before the actual delete you query the products image field to see if there is a duplicate... if so you don't delete it. They have this sort of thing allready if you delete a categorie that has products in it.

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

I am installing a store that sells original multiples of artists works, limited editions of one image of up to 100. I WANT to be able to use the image over again so if this feature is created may I suggest that auto delete of the image be an optional feature ie = this product is out of stock do you wnat to delete it, delete the inage too?

 

thanks just my 2 sense

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...