Button to delete category without deleting products assigned to other categories too
Home > For Customers > PrestaShop Store Manager > PrestaShop Manager Feature Request > Button to delete category without deleting products assigned to other categories too

Button to delete category without deleting products assigned to other categories too

Avatar image
Dec 18, 2013
Yosh M wrote
Right now, when you products in 2 categories, say Category A and Category B, if you want to delete Category A but NOT DELETE the products that are assigned to Category B too, you have to check on each product one by one to see if it is assigned to category B too, and unassign it from Category A and after that you are able to delete Category A including products that are only assigned to Category A.

What do you think about adding another button on the confirmation box when you click on "Delete Category" that would "delete category and products assigned to this category only" or something like that, this way we wouldn't lose the products that should still be in other categories.
7votes
New
Vote
Reply
28 Answers
Dec 19, 2013
Sergiy Kibitkin agent wrote
This is great idea, thanks Yosh! I'll try to implement your suggestion in one of future releases.
Dec 19, 2013
Sergiy Kibitkin agent wrote
By the way, such logic has been implemented in Store Manager for osCommerce before - see screenshot.
Dec 19, 2013
Yosh M wrote
Yeah, that is exactly what I am talking about, we just need it for Prestashop :-), the option of deleting the images associated would be great too.
Dec 19, 2013
Sergiy Kibitkin agent wrote
Did you see Store Diagnostics ?>

Dec 19, 2013
Yosh M wrote
Yes, but every time I run the "Images that are not linked to any product" diagnostic the connection to the server breaks in the process and I never get to the end, because it takes too long. If I had some way of running it by parts (x /img/p directories) I think it would work, but as it is I never get to the end. I must say I have several thousands of images.

Anyway, the option on the image when deleting categories would avoid having to run the diagnostic after deleting products.
Dec 19, 2013
Sergiy Kibitkin agent wrote
Please wait for Store Diagnostics execution.
I recommend you to use bridge connection to speed-up execution time.

Dec 19, 2013
Yosh M wrote
It's not that I don't wait for it to finish. The connection drops in the process and the diagnostic stops, and I have to restart it again. I'll try with the bridged connection.
Dec 20, 2013
Sergiy Kibitkin agent wrote
Please try and let me know result.
Jan 22, 2014
Yosh M wrote
Hi, I was just checking this issue with the categories again. The best thing would be that the Store Manager would offer the same options than the Prestashop 1.5 backend when you try to delete a category. Please see attachment.
Those 3 options are good. The last one would be the "safe delete".
Jan 23, 2014
Sergiy Kibitkin agent wrote
Hello Yosh,
Thanks for comment.
I'll try to open discussion with our development team for this task.
It will be in future Release.
Right now we need to finish current Release according to schedule.
Jan 24, 2014
Dale Buird wrote
Yosh what you can do for now is move all the products to "category B" all at once. You dont have to do it one by one. Just view that category and control A to select them all and then drag them to the left into "category B" and then options will pop up and if you select option to move it to this category and create new default. This will not only move all the product to the category but they will not have cat. B as the default cat. ..its similar to copy and past. Then Cat. A will be empty and you can delete it so really no need for this new feature.

Also if you dont want to move them...when you delete a category with products inside them and click yes to all I believe that does delete everything including images.
Jan 24, 2014
Yosh M wrote
Your solution does not work for me because inside category A only some products also show in category B. There is no point in having to move them all to a category which they don't belong to just to remove the parent category. I meant one by one because when you have thousands of products you don't know exactly to which categories each product is assigned. And I strongly believe there should be at least a notification when deleting a category that would say that all the products it contains will be deleted, including those that are assigned to other categories. Right now it does not say anything and it can cause unexpected loss of products because it does not behave the same than the back office. What I am talking about is that when you delete a category it should only delete the products that belong to that category and no other.

It is called Prestashop Manager so I understand it should work as Prestashop does. I am not putting any pressure, I am just pointing out improvements and showing how some aspects of the backoffice work that could be implemented on the manager.
Jan 27, 2014
Sergiy Kibitkin agent wrote
According to this history of request.
Better desicion for us to implement logic from Store Manager from osCommerce. This idea was implemented us long time ago in another Store Manager.
See screen-shot in attached file.
I'll try to add this task in future development plan of Store Manager for PrestaShop.

Sep 02, 2014
Yosh M wrote
Any update on this? When is it scheduled for?

Regards.
Sep 04, 2014
Olivier Decroupette wrote
I run always in the same problem as Yosh regarding the connection drop of the image diagnostic, so I's useless. It stops by himself after around 1h and approx. 7000 images or so.
Sep 05, 2014
Sergiy Kibitkin agent wrote
This task wan not included in the current Release because of lot of new modification. :-(
I hope to open this task again after next one.
Sep 05, 2014
Olivier Decroupette wrote
Hi Sergiy,

I've seen the roadmap from http://www.prestashopmanager.com/store-manager-for-prestashop-roadmap/ for the current version which is i guess over. Any idea for new features in the next one and timing? could it be displayed on the same page?
Sep 05, 2014
Sergiy Kibitkin agent wrote
Hello Oliver!
I'm not ready to comment next Roadmap here.
I'm going to comment this suggestion when we finish current Release.
Feb 12, 2016
Yosh M wrote
just reminding about this issue and implementing the osCommerce logic when deleting categories, since its been over 2 years since I opened the ticket (and this feature was already present in BO on PS 1.5), as per Sergiy's last comment this suggestion has not been commented for a year and a half now.
Feb 15, 2016
Sergiy Kibitkin agent wrote
Well, you are right Yosh.
Thanks for re-open again of this request.
From my side I'll try to refresh this request again.
Well it'll be not so easy to control a huge amount of categories with multistores and languages with subcategories.
Feb 15, 2016
Yosh M wrote
If everything was "so easy"... That's what software engineers are for, to solve complex problems. Just implement the same methods than in the BO for this operation.
Feb 16, 2016
Sergiy Kibitkin agent wrote
You are right, but ..
This task was added in our lust and now it is waiting for next sprint among another 100 tasks to implement :-)
Jun 01, 2016
Yosh M wrote
Please... this is important. At least show a message saying "are you sure you want to delete all products in this category?" before removing. I just lost a bunch of products...
Jun 02, 2016
Sergiy Kibitkin agent wrote
Ok, give me some time.
Will refresh the status with our dev.team.
May 07, 2017
Yosh M wrote
any update on this? been almost 3.5 years already to implement something that is core in PS since ancient versions...
Dec 24 (2 months ago)
Anonymous wrote
Yosh is right, you should delete category without deleting products.

Products without any other category assigned should go to "HOME" category, the others just stay in the others category assigned.
It is not logic to delete them like that.
Feb 10 (38 days ago)
Jeff Rydalch wrote
Another vote here. I lost some critical information because I didn't realize Store Manager was doing that... So foolish to delete all products within a category. As Yosh mentioned, it's a core process in Prestashop and has been for ages!
Feb 21 (27 days ago)
Jeff Rydalch wrote
What is the update here??