Create Plugin

  • Posts: 22
  • Thank you received: 0
11 years 3 months ago #114504

Hi Nicholas,

I need to write a small plugin to execute some code once an order has been made.
Basically once an order has been placed, I need to update a custom table in the db.

I had a look at the 'group plugin' to see if I could figure out how it works, and tried to hack it by adding some code under the function called 'onAfterOrderCreate'.
I am not sure how this plugin is supposed to work to begin with, so it was probably not the best starting point.

Anyway, I do not want to hack a preexisting plugin, but rather create one for this purpose.

Is there any guide to creating such plugins, or could you offer some quick pointers?

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 3 months ago #114519

Hi,

We have a developer documentation.
www.hikashop.com/en/support/documentatio...mentation.html#howto

The beginning of the documentation explain the basic of an HikaShop plugin and the rest list and explains the triggers.
In your case, you want to plug your code on an order event:
www.hikashop.com/en/support/documentatio...mentation.html#order

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.054 seconds
Powered by Kunena Forum