z3nith Posted December 3, 2013 Share Posted December 3, 2013 HI, my prestashop site take up more hosting space because there are many photos of products. Many photos have been uploaded for "home slide module" and can be cancelled but there are many photos that can be cancelled. How can i know if a photo has discontinued or not??? Is there an automatic clean method??? thank you Link to comment Share on other sites More sharing options...
Dh42 Posted December 3, 2013 Share Posted December 3, 2013 What version of Prestashop are you using? Also are you using the default home slider module or one that came with a theme? Link to comment Share on other sites More sharing options...
z3nith Posted December 3, 2013 Author Share Posted December 3, 2013 What version of Prestashop are you using? Also are you using the default home slider module or one that came with a theme? Prestashop version 1.5.6.1 and i use the default home slider. Another question, when i delete a product from catalogue the image of product is deleted???? Link to comment Share on other sites More sharing options...
ibndawood Posted December 3, 2013 Share Posted December 3, 2013 Prestashop version 1.5.6.1 and i use the default home slider. Another question, when i delete a product from catalogue the image of product is deleted???? Yes in 1.5.6.1 if you delete the product, its images are deleted. Link to comment Share on other sites More sharing options...
z3nith Posted December 3, 2013 Author Share Posted December 3, 2013 Yes in 1.5.6.1 if you delete the product, its images are deleted. Well and for all others images like category or home slide? Link to comment Share on other sites More sharing options...
ibndawood Posted December 3, 2013 Share Posted December 3, 2013 Category images are deleted. But Home slide images are not deleted. You'll have to delete them manually from /modules/homeslider/images Link to comment Share on other sites More sharing options...
Dh42 Posted December 3, 2013 Share Posted December 3, 2013 Actually, there should be a trash can by the images in the home slider, that deletes them. Link to comment Share on other sites More sharing options...
z3nith Posted December 3, 2013 Author Share Posted December 3, 2013 Category images are deleted. But Home slide images are not deleted. You'll have to delete them manually from /modules/homeslider/images ok, thank you Link to comment Share on other sites More sharing options...
ibndawood Posted December 3, 2013 Share Posted December 3, 2013 Actually, there should be a trash can by the images in the home slider, that deletes them. Hi, Are u sure ? It only deletes the slide entry but the image is still there in the modules folder. Thats what happens to me. Did I miss anything ? Link to comment Share on other sites More sharing options...
Dh42 Posted December 3, 2013 Share Posted December 3, 2013 I never actually tested it out. It might be something good to file a bug report on. Link to comment Share on other sites More sharing options...
ibndawood Posted December 3, 2013 Share Posted December 3, 2013 I never actually tested it out. It might be something good to file a bug report on. I took a look into HomeSlide.php foreach ($images as $image) { if (preg_match('/sample/', $image) === 0) if ($image && file_exists(dirname(__FILE__).'/images/'.$image)) $res &= @unlink(dirname(__FILE__).'/images/'.$image); } I think they are not deleting the sample images only..or any image whose name has sample. ok, thank you Correction: Home slide delete all images except the ones that contains "sample" in their image name. Link to comment Share on other sites More sharing options...
Recommended Posts