cbai Posted March 1, 2017 Share Posted March 1, 2017 Does anyone know how to delete multiple product images at once in the backend of Prestashop 1.7? Either a module or code modification is ok. Please let me know. Thank you. 1 Link to comment Share on other sites More sharing options...
NemoPS Posted March 1, 2017 Share Posted March 1, 2017 There is no easy and quick way to do it, and I guess there is no third party extension either for now.you could remove them from the db but the files would be left 1 Link to comment Share on other sites More sharing options...
cbai Posted March 1, 2017 Author Share Posted March 1, 2017 ah thank you! I don't want to touch the db though although it's an idea... Link to comment Share on other sites More sharing options...
Andrea68 Posted July 20, 2018 Share Posted July 20, 2018 I'm very surprised that a features like this is not implemented yet. Delete one image at a time is really a pain in the a** 2 Link to comment Share on other sites More sharing options...
Mostafa.J Posted December 31, 2018 Share Posted December 31, 2018 at leaaaaaaast they have to give us the option to skip confirming deleting after each process to nt double the time wasting ! -.- 1 1 Link to comment Share on other sites More sharing options...
alicu90 Posted March 1, 2019 Share Posted March 1, 2019 news about this problem? Link to comment Share on other sites More sharing options...
gorkij Posted April 15, 2019 Share Posted April 15, 2019 This is rather annoying, yes. Several of my products uses at least 2-3 images for user understanding. Having to remove them bit by bit because "OH YOU SHOULDN'T HAVE MORE THAN ONE IMAGE" isn't an answer, it's an insult of how I run things. Checkbox and mass delete or the option of not copying images when duplicating a product please. It worked just fine in 1.6, so the implementation can't be that bad. Link to comment Share on other sites More sharing options...
tomhash79 Posted May 7, 2019 Share Posted May 7, 2019 I would appretiate solution for this too! Spent hours searching for some module but really nothing available at the moment! I have several products with more than 10 pictures and sorting it out with select-delete-confirm one by one is REALLY confusing...☹️ Link to comment Share on other sites More sharing options...
abkuza Posted May 7, 2019 Share Posted May 7, 2019 Unfortunately you have to do it manually one at a time...no other solution exist 😕 Link to comment Share on other sites More sharing options...
Deepoarman Posted January 4, 2020 Share Posted January 4, 2020 Oh i have 30+ product pictures and when i sell an item i don't like to lose the seo on the product ... so i like to delete the pictures and upload another same product ... I wish you could wipe all at once .. pffff Link to comment Share on other sites More sharing options...
pandorrah Posted January 16, 2020 Share Posted January 16, 2020 (edited) Still on the wishlist: mass deletion of more than 2 (or 3) images per product. A legacy problem from moving, migrating and updating Prestashop versions, resulted in many copies of the same image per product. With 6000 products it's a pain to remove them by hand on every single product. Edited January 16, 2020 by pandorrah (see edit history) Link to comment Share on other sites More sharing options...
knknk Posted March 5, 2020 Share Posted March 5, 2020 (edited) I bought this module, but it is not working. It does not delete anything. Edited March 5, 2020 by knknk (see edit history) 1 Link to comment Share on other sites More sharing options...
Mindi Posted October 29, 2021 Share Posted October 29, 2021 (edited) Hi, Is this deleting several pics at once now available ? Meaning when having one product which contains like 30 pics, those are needed still deleted one by one ? No faster way to do it ? Using prestashop 1.7.7.8 Edited October 29, 2021 by Mindi (see edit history) Link to comment Share on other sites More sharing options...
happymerchant Posted November 20, 2022 Share Posted November 20, 2022 On 12/31/2018 at 5:35 PM, Mostafa.J said: at leaaaaaaast they have to give us the option to skip confirming deleting after each process to nt double the time wasting ! -.- Yeah I agree, this should be included as default in settings - an option to disable confirmation modal. Well for now I made this javascript for presta 1.7.8.7 that overrides this confirmation routine and so you can just click "delete" button and poof image is gone instantly. You can load it in your browser's developer console or use as a userscript. formImagesProduct.delete = function(id) { const dropZoneElem = $('#product-images-dropzone'); const formZoneElem = $('#product-images-form-container'); $.ajax({ url: dropZoneElem.find(`.dz-preview[data-id="${id}"]`).attr('url-delete'), complete() { formZoneElem.find('.close').click(); const wasCover = !!dropZoneElem.find(`.dz-preview[data-id="${id}"] .iscover`).length; dropZoneElem.find(`.dz-preview[data-id="${id}"]`).remove(); $(`.images .product-combination-image [value=${id}]`).parent().remove(); imagesProduct.checkDropzoneMode(); if (wasCover === true) { // The controller will choose the oldest image as the new cover. imagesProduct.updateDisplayCover(imagesProduct.getOlderImageId()); } }, }); dropZoneElem.removeClass('d-none d-md-block'); dropZoneElem.css('height', ''); formZoneElem.find('#product-images-form').html(''); formZoneElem.hide(); dropZoneElem.find('.dz-preview.active').removeClass('active'); } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now