Advertisement
Guest User

Rule that grants a user points from Drupal Commerce

a guest
Sep 6th, 2012
569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. { "rules_test" : {
  2. "LABEL" : "test",
  3. "PLUGIN" : "reaction rule",
  4. "REQUIRES" : [ "userpoints_rules", "commerce_checkout" ],
  5. "ON" : [ "commerce_checkout_complete" ],
  6. "DO" : [
  7. { "userpoints_action_grant_points" : {
  8. "user" : [ "site:current-user" ],
  9. "points" : [ "commerce-order:commerce-order-total:amount" ],
  10. "tid" : "76",
  11. "entity" : [ "commerce-order" ],
  12. "description" : "Test",
  13. "operation" : "Add",
  14. "display" : 1,
  15. "moderate" : "approved"
  16. }
  17. }
  18. ]
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement