vinaysaini Posted September 24, 2013 Share Posted September 24, 2013 (edited) I have written a module which shows the listing of all products. I want to know how I can delete multiple products. Is there a way so that I can send product Ids and it does the rest for me? Or some other way so that I can delete multiple products. Edited September 24, 2013 by vinaysaini (see edit history) Link to comment Share on other sites More sharing options...
vinaysaini Posted September 24, 2013 Author Share Posted September 24, 2013 Any Help???? Link to comment Share on other sites More sharing options...
vekia Posted September 24, 2013 Share Posted September 24, 2013 you can send array with products ID numbers - and then in foreach loop remove them with $product = new Product($id); $product->delete(); i never tested it, but as far as i know - this method should work Link to comment Share on other sites More sharing options...
Recommended Posts