Hello, is Userpoints 2.0.0-beta2 still using transactions module? If so, how to configure it to credit the transaction with user entity? I tried several ways, to get it working, but without success.
To create a transaction, i use ECA module. The action trigger after a user login. Transaction is successfully created and executed, but points value of user who received the transaction isn't updating.
If i try creating a Userpoints entity with ECA module, the entity don't got created. The model stops at marked point in attached screenshot without error or anything.
Maybe, someone can help on how to configure userpoints correct with or without Transaction module, to automatically add points on certain user actions like "daily login".
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| ECA Model- user login.png | 63.48 KB | killah89 |
Comments
Comment #2
killah89 commentedComment #3
nico.b commentedFrom my understanding, Userpoints 2.0.0-beta2 does not make use of the Transaction module anymore.
Points can be added via the UserpointsService (by using the addPoints() method). If you want to react to certain actions, you can call the service in hooks and/or EventSubscribers.
Comment #4
killah89 commentedYeah, but why isn't it working with ECA "the new rules engine"?
Comment #5
alexander.nachev commentedHi All,
I also need to add Userpoints with ECA. Where can I read more about this?