With the Drupal commerce module, I created a new product type I use for selling points to my customers. The product has a custom field named “points” (field type integer) where I specify the amount of point to sell.
On checkout I want to grant the points to the user (with the Userpoint module). I want to do this with rules.
The problem is that I can’t retrieve the field “points” in action rules. I tried adding the “entity has field” condition, but I am not able to retrieve the field from the commerce order.
The action is grants points to a user.
How can I achieve this?