trestxe

Some suggestions

Recommended Posts

Hi, thank you for this great addon !!

Here are some suggestions to add :

- Ability for each user to create recurring transfer to another user (weekly - monthly..)

- Ability to transfer a percentage of points from an account :  I use a rule to withdraw points from all accounts each week, I would like to withdraw a percentage of points (ex : 20% of balance of all accounts are withdrawed each week) and not an amount of points.

Thanks for considering it !

Share this post


Link to post
Share on other sites
2 hours ago, trestxe said:

Ability to transfer a percentage of points from an account :  I use a rule to withdraw points from all accounts each week, I would like to withdraw a percentage of points (ex : 20% of balance of all accounts are withdrawed each week) and not an amount of points.

Technically, you could already do this. Instead of entering a static amount into your transfer action, select PHP code and return your own calculated value. Getting a balance for a member is not too hard with the points API.

$amount = $member->balance( $currency_id, $bank_id )->amount * 0.2;
return $amount;

Bank id 0 would be the spending account.

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.