Closed (fixed)
Project:
Pay-per-node
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Sep 2011 at 17:15 UTC
Updated:
9 Sep 2012 at 13:31 UTC
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.