I am trying to create a rule that will award userpoints to user when his product is purchased.
Here's my test rule (without any useful functional):
{ "rules_award_seller_cloned_" : {
"LABEL" : "Award seller (cloned)",
"PLUGIN" : "reaction rule",
"WEIGHT" : "5",
"REQUIRES" : [ "uc_payment", "rules" ],
"ON" : [ "uc_payment_entered" ],
"IF" : [
{ "uc_payment_condition_order_balance" : { "order" : [ "order" ], "balance_comparison" : "less_equal" } }
],
"DO" : [
{ "LOOP" : {
"USING" : { "list" : [ "order:products" ] },
"DO" : [
{ "drupal_message" : { "message" : "[list_item:title] [list_item:price]" } }
]
}
}
]
}
}
I am getting the following error when adding payment to the order:
Fatal error: Call to undefined function uc_order_get_properties() in /home/magicfoc/domains/magicfocus.ru/public_html/sites/all/modules/entity/includes/entity.wrapper.inc on line 421
If I remove loop and message in rule actions, all is OK.
Comments
Comment #1
longwaveSimply removing the getter/setter callback seems to fix it, let me know if this works as expected.
Comment #3
longwaveComment #4
longwaveCommitted.