1
Answers
grant user points equals to product price
I would like to grant user points to product owner in amount of product price after product sold.
for this I define a rule as below:
- Events:
- Completing the checkout process
- Loop (commerce-order:commerce-line-items)
Actions:
and define a Rule component as below:
- Conditions:
- Entity has field (Entity: commerce-line-item, Field: commerce_product)
- Grant points to a user: (User: commerce-line-item:commerce-product:creator, Points: commerce-line-item:commerce-product:commerce-price:amount)
Actions:
But when I save component it makes error:
Error message
Data selector commerce-line-item:commerce-product:commerce-price:amount for parameter points is invalid.
How I can do that?
tnx