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

Files: 
CommentFileSizeAuthor
#4 1858772-uc_order-vbo-delete.patch751 byteslongwave
PASSED: [[SimpleTest]]: [MySQL] 2,769 pass(es).
[ View ]
#1 1858772-uc_order-vbo-delete-order.patch34.46 KBserjas
PASSED: [[SimpleTest]]: [MySQL] 2,767 pass(es).
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new34.46 KB
PASSED: [[SimpleTest]]: [MySQL] 2,767 pass(es).
[ View ]

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?

It depends on views bulk operation

StatusFileSize
new751 bytes
PASSED: [[SimpleTest]]: [MySQL] 2,769 pass(es).
[ View ]

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.

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.

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.

Status:Needs review» Fixed

Tested, works for me, committed.

Status:Fixed» Closed (fixed)

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