Is there an example which we can use to write our own promotion rule?
Basically we want to create a Promotion rule to add a %age of cash back to the customer wallet when he belongs to a certain usergroup ( group allocation is based on his total spending on the website )
Wallet and Groups are already implemented, just need to understand to how to create the rules and implement the same.
If some one can guide me or point to some code it would be great.