It would be great if there was support for changing the delivery status for multiple orders with views bulk operations just like the module commerce backoffice order does. I imagine it wouldn't be such a huge thing to implement since it's a very similar process as with the orders.

This is a process that takes a lot of time to do when you have a lot of orders to change delivery status for and with bulk operations it would be much more easier.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mrfelton’s picture

Title: Add bulk operations support for delivery status. » Add bulk operations support for all order statuses.
Status: Active » Needs review
FileSize
6.53 KB

Here is a patch that enhances the bulk operations support so that all order statuses can be used, including those defined by other modules.

gonz’s picture

Has anyone tested this patch yet - seems like a great patch - clean code - and future proof.

Hopefully I can test out later this week and give feedback.

joelpittet’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Status: Needs review » Needs work

This looks great @mrfelton, Although it busts with commerce_cardonfile.

The rules name is too long, although may be a limitation of rules... we should probably truncate the name? It's 64 characters.

type=rules_config|ip=127.0.0.1|uri=http://localhost/|referer=|uid=0|link=|message=PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'name' at row 1: INSERT INTO {rules_config} (name, label, plugin, weight, status, module, owner, data) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7); Array
(
[:db_insert_placeholder_0] => rules_commerce_order_status_cardonfile_payment_error_hard_decline
[:db_insert_placeholder_1] => Set order status : Pending (Payment failed (hard decline))
[:db_insert_placeholder_2] => action set
[:db_insert_placeholder_3] => 0
[:db_insert_placeholder_4] => 2
[:db_insert_placeholder_5] => commerce_backoffice_order
[:db_insert_placeholder_6] => rules

renenee’s picture

The patch in #1 worked like a charm. Thank you!

david-urban’s picture

Hey all, could we try to re-visit this issue? It still seems relevant…

Christopher Riley’s picture

Patch worked for me however I agree that this should really be part of the core module and not rely on a patch.

i92guboj’s picture

I always missed something like this...

Damn-Deal-Done’s picture

Hi.

Patch #1 does not work for me. After applying the patch I now have less statuses to choose from.

Can this module be made to work with custom statuses from this module? https://www.drupal.org/project/commerce_custom_order_status

Many thanks