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

#   Calling the onAfterOrderConfirm within a shipping

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

11 years 2 months ago [\#210846](#210846) by [jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")  *[Calling the onAfterOrderConfirm within a shipping](/forum/28-shipping-methods/878619-calling-the-onafterorderconfirm-within-a-shipping#210846 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : How do I call the onAfterOrderConfirm function from within a shipping plugging?  Hi, How do I call the onAfterOrderConfirm(&amp;$order,&amp;$methods,$method&#95;id) function from within a shipping function?  Is there something that must be done first? I am getting a 500 error everytime I include it as a method in my class. Basically, I want to send some information about the order to the database after it is completed.  Thanks!  Joel")* was created by *[jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.1
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : How do I call the onAfterOrderConfirm function from within a shipping plugging?

Hi,
How do I call the onAfterOrderConfirm(&amp;$order,&amp;$methods,$method_id) function from within a shipping function?

Is there something that must be done first? I am getting a 500 error everytime I include it as a method in my class.
Basically, I want to send some information about the order to the database after it is completed.

Thanks!

Joel

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc4NjE5LWNhbGxpbmctdGhlLW9uYWZ0ZXJvcmRlcmNvbmZpcm0td2l0aGluLWEtc2hpcHBpbmc/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)
-

11 years 2 months ago [\#210849](#210849) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Calling the onAfterOrderConfirm within a shipping](/forum/28-shipping-methods/878619-calling-the-onafterorderconfirm-within-a-shipping#210849 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : How do I call the onAfterOrderConfirm function from within a shipping plugging?  Hi, How do I call the onAfterOrderConfirm(&amp;$order,&amp;$methods,$method&#95;id) function from within a shipping function?  Is there something that must be done first? I am getting a 500 error everytime I include it as a method in my class. Basically, I want to send some information about the order to the database after it is completed.  Thanks!  Joel")*

Hi,

You don't call it ; HikaShop will.
Please read the developer documentation for more details :
[ www.hikashop.com/support/support/documen...#onAfterOrderConfirm](http://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html#onAfterOrderConfirm)

If you got 500 error ; you should take a look a your error log.

Regards,

---

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

The following user(s) said Thank You: [jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

11 years 2 months ago [\#210908](#210908) by [jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")  Replied by *[jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")* on topic *[Calling the onAfterOrderConfirm within a shipping](/forum/28-shipping-methods/878619-calling-the-onafterorderconfirm-within-a-shipping#210908 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : How do I call the onAfterOrderConfirm function from within a shipping plugging?  Hi, How do I call the onAfterOrderConfirm(&amp;$order,&amp;$methods,$method&#95;id) function from within a shipping function?  Is there something that must be done first? I am getting a 500 error everytime I include it as a method in my class. Basically, I want to send some information about the order to the database after it is completed.  Thanks!  Joel")*

I found the issue. I had the function onAfterOrderConfirm defined previously in my class.
I guess it got lost in all my functions there.
Its working fine again
thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc4NjE5LWNhbGxpbmctdGhlLW9uYWZ0ZXJvcmRlcmNvbmZpcm0td2l0aGluLWEtc2hpcHBpbmc/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.188 seconds

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

[](#top)
