Re: Run a script after payment confirmed?

  • Posts: 32
  • Thank you received: 2
8 years 9 months ago #31801

I've looked at this a few times and keep getting lost. What I simply want to do is have my own PHP script called with order parameters when payment has been confirmed. What I need to do is generate a license record in an existing custom database, based on HikaShop giving me details of the order - which products were ordered.

Firstly, which edition of HikaShop do I need for this? Second, which function/callback is most appropriate?

Many thanks.

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

  • Posts: 70485
  • Thank you received: 10576
  • MODERATOR
8 years 9 months ago #31834

Hi,

You can do that with all the editions of HikaShop.

You should create a hikashop plugin and implement the function onAfterOrderUpdate as explained there:
www.hikashop.com/en/support/documentatio...l#onAfterOrderUpdate
You can look at the history plugin file: plugins/hikashop/history.php for an example.

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

  • Posts: 45
  • Thank you received: 1
1 month 4 weeks ago #322145

hi. @nicolas
is there any new way? are you still on this suggestion? create plugin?

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

  • Posts: 24396
  • Thank you received: 3757
  • MODERATOR
1 month 4 weeks ago #322146

Hello,

If you do want to call some custom PHP script when an order is confirmed ; yes the creation of a custom plugin is the best place to put your custom PHP code.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum