[Skip to main content](#vessel-content)

#   Create Plugin

##

- **[apollo123](/forum/user/1244-apollo123 "View apollo123's Profile")**
- [![apollo123's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1244-apollo123 "View apollo123's Profile") Topic Author
- [ Offline](/forum/user/1244-apollo123)

Less More

- Posts: 22
- Thank you received: 0
-
-

13 years 3 months ago [\#114504](#114504) by [apollo123](/forum/user/1244-apollo123 "View apollo123's Profile")  *[Create Plugin](/forum/4-how-to/85472-create-plugin#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?")* was created by *[apollo123](/forum/user/1244-apollo123 "View apollo123's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NDcyLWNyZWF0ZS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 3 months ago [\#114519](#114519) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Create Plugin](/forum/4-how-to/85472-create-plugin#114519 "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?")*

Hi,

We have a developer documentation.
[ www.hikashop.com/en/support/documentatio...mentation.html#howto](http://www.hikashop.com/en/support/documentation/62-hikashop-developer-documentation.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](http://www.hikashop.com/en/support/documentation/62-hikashop-developer-documentation.html#order)

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NDcyLWNyZWF0ZS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.109 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
