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:
- Completing the checkout process
- Loop (commerce-order:commerce-line-items)
and define a Rule component as below:
- 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)
But when I save component it makes error:
Data selector commerce-line-item:commerce-product:commerce-price:amount for parameter points is invalid.
How I can do that?