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.
When a paypernode order goes through it grants a certain number of allowed nodes. However if I cancel the order the nodes are still allowed to be created. This would be helpful so I don't have to manually edit the nodes on an order cancellation. (using with ubercart)
Comments
Comment #1
maurizio.ganovelliI think that this can be done using rules (7.x) or conditional action (6.x).
For D7 you can use the rule below (you can import the code from admin/config/workflow/rules/reaction/import):
This rule removes from user's balance all nodes charged by ppn, when order status change from "Completed" to "Cancelled" status. "PHP filter" core module must be enabled.