Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTaxon without product isn't removable #11277
Comments
|
I can confirm, that the problem still exists. I can see a few possible solutions to this:
The last option is quite an easy pick, if anyone would like to contribute to Sylius and improve our UX a little bit ;) |
|
I would add to the 3rd point: adding a link to unlink all the products from a taxon in the error message :p. But it's a must have ^^ |
|
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
|
Do not stale |


Sylius version affected: v1.4.4
Description
Sylius says the category is used and cannot be removed, when we try to remove an empty category.
We figured out that we had some products with the taxon as "Main Taxon".
Steps to reproduce
Possible Solution
I suggest to set to
NULLthemain_taxon_idcolumn for those products, but this may not be the best solution.Adding a warning could be a good idea, like "This taxon is used as main taxon for some products.".
But here the issue is "Which products???".
So, maybe a solution could be a warning and a link or a button to "Remove the taxon anyway".
I don't know. The usability of this is quite tricky :/.