Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When attempting to delete the default Product type that comes with Kickstart, clicking the delete button has no effect. The product type is not deleted, and no message is shown.
admin/commerce/products/types/product/delete
Comment | File | Size | Author |
---|---|---|---|
Product | Commerce Kickstart.png | 85.36 KB | robertDouglass |
Comments
Comment #1
theo_ CreditAttribution: theo_ commentedComment #2
vasikeactually "Can't delete product type" it's not a bug.
it's Commerce Features "Feature": The product types provided by (Commerce) Features shall not be deleted.
at this moment you can still see the delete button. but probably soon it should be vanished #1781312-3: Remove delete buttons for enabled "Commerce Features"
here is a commit which includes the Commerce Features patch: https://code.drupalcommerce.org/#/c/429/
So what you have to do it's to disable the custom Feature that defines this product type:
- for [No Demo Store] Commerce Kickstart Lite Product
- for [Demo Store] Commerce Kickstart Product
Comment #3
bojanz CreditAttribution: bojanz commentedFixed by the provided commerce_features patch.
Comment #4
xxm CreditAttribution: xxm commentedWhile trying to delete one of these features these error messages shows up:
or
The patch only disables the buttons, it does'nt change the possibilty to delete product typs. Right?
Comment #5
bojanz CreditAttribution: bojanz commentedIf you're just trying to disable a feature, why does your error message say you're enabling the opposite one?
Yes, it just disables the buttons.
I will untie the product type in "no demo store" so that it can be deleted, but the demo store ones won't ever be deletable.
Comment #6
xxm CreditAttribution: xxm commentedThat's what I'm asking and don't understand.
Comment #8
marktheshark CreditAttribution: marktheshark commentedI'm trying to delete the default Product Display Content type, since I won't be using the plain Product variation type provided in DCK. However it does not appear to be removable (While I was able to delete the Product variation type)...
Comment #9
More_well CreditAttribution: More_well commentedLet me see my solution of problem, it's work for module Drupal Commerce !
1. Go to Store
2. Click Orders
3. Chose Shopping carts
4. Delete all orders in there
5. Go back to product's and delete all !
6. Then delete Product Display Content type !