User Points custom field - exp integrations

  • Posts: 455
  • Thank you received: 35
2 months 3 weeks ago #358895

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 4.4.2 & 5
-- PHP version -- : 8.1.26
-- Browser(s) name and version -- : Chrome

Hi guys,
I'm posting here into "Integrations" because I've not found an "User Points" specific forum.
www.hikashop.com/support/documentation/257-using-points.html

Please, Can the HS User Points custom field be used (expanded) to trigger 3rd party events (Solidres, DPCalendar, etc.) OR is it thought only for internal triggering (HikaShop) ?

Please Log in or Create an account to join the conversation.

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
2 months 3 weeks ago #358898

Hi,

It can sure be used to trigger other extensions as long as the corresponding plugins are developed to make the link.
How to do it depends on what you're trying to achieve.
For example, if you want the HikaShop user points to be usable to pay for booking in solidres, you would need to develop a solidres payment plugin which would use the points from the HikaShop user and update the value in the database.
If you want the booking in solidres to add points to the user points in HikaShop, then it would require the development of a solidres plugin which would update the points of the user after the payment of the booking for example.
If you want to trigger solidres events after points are added, removed, etc then it would require a HikaShop plugin implementing the onBeforeUserUpdate and onAfterUserUpdate events to check the points value before and after and trigger the event of solidres.

We've only built things for HikaShop because that was our main concern at the time, but many integrations could be stacked on what we've made, it just require developing the integration each time.

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum