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.
Attached is a patch which adds a couple operations to Ubercart Views Bulk Operations, namely "move to previous state" and "cycle state." I also added order commenting to note the operation in orders.
We needed to retroactively apply a rule to orders, which requires that the orders be updated. Not wanting to change the orders, we decided to create a new order status in the Completed state. VBO then cycles the state, effectively triggering the rule without modifying the order.
Order commenting was added because we deleted the new order status and the reference was deleted from the order comments.
Comment | File | Size | Author |
---|---|---|---|
#1 | uc_vbo.patch | 5.09 KB | theneonlobster |
uc_vbo.patch | 4.97 KB | theneonlobster |
Comments
Comment #1
theneonlobster CreditAttribution: theneonlobster commentedThis should be a better patch