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.
I already made a simple module which will create a VBO action to perform bulk delete orders. This is useful for developers who have 100s of test orders. http://drupal.org/project/vbo_delete_uc_orders
@longwave suggested that it could include in uc_order core module. So created a patch . Please review
Comment | File | Size | Author |
---|---|---|---|
#4 | 1858772-uc_order-vbo-delete.patch | 751 bytes | longwave |
#1 | 1858772-uc_order-vbo-delete-order.patch | 34.46 KB | serjas |
Comments
Comment #1
serjas CreditAttribution: serjas commentedComment #2
DanZ CreditAttribution: DanZ commentedI could use that!
Please explain what needs to be done to use this feature. Does it mean that you need to install additional modules to get Ubercart to work?
Comment #3
serjas CreditAttribution: serjas commentedIt depends on views bulk operation
Comment #4
longwaveSimplified the patch slightly - we are only interested in uc_orders, not all entities - and the default view cannot include VBO, as not all users will have this installed. We could add a VBO view if the user has VBO installed, but that is for another issue.
Comment #5
DanZ CreditAttribution: DanZ commentedThe patch in #4 doesn't cause problems, but how does it add bulk delete? Do I need to configure something first? A view, maybe?
I do see "Delete order" at admin/config/system/actions. I don't see "Set order status", strangely.
Comment #6
longwaveYou need to download and enable Views Bulk Operations, create a view of orders (or edit an existing one), add the "Bulk operations: Order" field, then select "Delete order" under "Selected bulk operations" in the field settings. When you use the view the field will appear as a checkbox, and there will be an extra "operations" dropdown at the top of the page; select "Delete order", check some orders and hit Execute to delete them.
Comment #7
longwaveTested, works for me, committed.
Comment #9
SmokinX CreditAttribution: SmokinX commentedI like to provide a tip for my Dutch fellow people: when adding bulk operation to view, please use the one labeled 'volgorde' which is 'order' wrongly translated...! This way it's working, not when using the one labeled 'Gebruiker' (User).
Comment #10
Jens Peter CreditAttribution: Jens Peter commentedI know this is an old issue but I cannot get this to work.
Is it removed as "Bulk".
I have found the #4 in the Ubercate order module.
I have the Bulk Operations module activated for Views.
It did not show up.
Now I also installed the module for Bulk Delete - still no luck.
Can any one help?
Comment #11
IamOnStage CreditAttribution: IamOnStage commentedI can confirm that upgrading VBO to the current dev fixed the issue.
https://www.drupal.org/project/ubercart/issues/2861925
Comment #12
Jens Peter CreditAttribution: Jens Peter commented@IamOnStage, I didn't get it to work.
I am very sure I used the last dev version of VBO too, but I might have to try again.