Hi,
Thank you for your feedback.
That's a good idea.
The page
docs.shondalai.com/rewardify/rewardify-points-system-api/
covers the necessary information for us to integrate it in our user points system.
There are some missing details. If the developer could add them to the documentation, I think it would be great:
- For the rule_name, it mentions "mysection", "myactivity1". Does that mean we can put whatever we want ? I suppose yes.
- For the "group_name, I don't know what it is used for, so I'm not sure what I should put in there. Can I put "order" for points added by HikaShop ?
- In the assign function, is the "userid" the same as the Joomla user id ? Or it needs to be retrieved with a call to getUserProfile() ? And if so, I suppose the user id is in an "id" attribute of the returned object, is that correct ?
The main issue I have with this is that I don't see a way to provide a dynamic amount of points when assigning points.
For example, with AlphaUserPoints / AltaUserPoints I would do:
AlphaUserPointsHelper::newpoints('plgaup_orderValidation', $aupid, '', $data, $points);
And $points could be positive or negative.
I think a good solution would be to be able to override the amount of points with an extra parameter to the array passed to the assign function.
Without that capability, it will be difficult making the integration in the existing points system in HikaShop.
With it, it will be easy to add the integration on our end.