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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

serjas’s picture

Status: Active » Needs review
FileSize
34.46 KB
DanZ’s picture

I 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?

serjas’s picture

It depends on views bulk operation

longwave’s picture

Simplified 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.

DanZ’s picture

The 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.

longwave’s picture

You 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.

longwave’s picture

Status: Needs review » Fixed

Tested, works for me, committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

SmokinX’s picture

Issue summary: View changes

I 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).

Jens Peter’s picture

I 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?

IamOnStage’s picture

I can confirm that upgrading VBO to the current dev fixed the issue.

https://www.drupal.org/project/ubercart/issues/2861925

Jens Peter’s picture

@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.