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

#   Where would I find custom code after order has been submitted

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

1 year 3 months ago [\#368189](#368189) by [pdezenzio](/forum/user/83535-pdezenzio "View pdezenzio's Profile")  *[Where would I find custom code after order has been submitted](/forum/27-checkout/909644-where-would-i-find-custom-code-after-order-has-been-submitted#368189 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.3.33  I have inherited a company's Joomla application that uses the Hikashop. Everything works fine, but I can't find where the custom code is located that submits an api call to Celigo, a 3rd party application that sends the sales order to Netsuite. The company's goal is to change everything that calls Celigo and make the call from Joomla. The reason is the Celigo contract is getting renewed in a month and they want to get away from them because the $$$ are going up. I have already made changes to the api file in Joomla that is triggered via a button in Administrator under Orders. Press the button, and the order is created in Netsuite.  The problem is that it is a manual process the previous contractors added to help resolve issues that could occur during the order process. It doesn't happen very often but I also don't know if this PHP code is called during the submit order. I don't have any way to contact this contracting company, no longer in business. It's possible they may have used cron to pull new orders and send to Celigo but I have no access to the actual host server. I have access to the code in Sharepoint via WinSCP, but I'm not able to login to the actual host server. If I could, I'd be able to pull up the crontask and see if there are any cron jobs.  Outside of this, where would I find in Hikashop/Joomla where the Finish button process is handled?")* was created by *[pdezenzio](/forum/user/83535-pdezenzio "View pdezenzio's Profile")*

-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.6
-- PHP version -- : 7.3.33

I have inherited a company's Joomla application that uses the Hikashop. Everything works fine, but I can't find where the custom code is located that submits an api call to Celigo, a 3rd party application that sends the sales order to Netsuite. The company's goal is to change everything that calls Celigo and make the call from Joomla. The reason is the Celigo contract is getting renewed in a month and they want to get away from them because the $$$ are going up. I have already made changes to the api file in Joomla that is triggered via a button in Administrator under Orders. Press the button, and the order is created in Netsuite.

The problem is that it is a manual process the previous contractors added to help resolve issues that could occur during the order process. It doesn't happen very often but I also don't know if this PHP code is called during the submit order. I don't have any way to contact this contracting company, no longer in business. It's possible they may have used cron to pull new orders and send to Celigo but I have no access to the actual host server. I have access to the code in Sharepoint via WinSCP, but I'm not able to login to the actual host server. If I could, I'd be able to pull up the crontask and see if there are any cron jobs.

Outside of this, where would I find in Hikashop/Joomla where the Finish button process is handled?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

1 year 3 months ago [\#368190](#368190) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Where would I find custom code after order has been submitted](/forum/27-checkout/909644-where-would-i-find-custom-code-after-order-has-been-submitted#368190 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.3.33  I have inherited a company's Joomla application that uses the Hikashop. Everything works fine, but I can't find where the custom code is located that submits an api call to Celigo, a 3rd party application that sends the sales order to Netsuite. The company's goal is to change everything that calls Celigo and make the call from Joomla. The reason is the Celigo contract is getting renewed in a month and they want to get away from them because the $$$ are going up. I have already made changes to the api file in Joomla that is triggered via a button in Administrator under Orders. Press the button, and the order is created in Netsuite.  The problem is that it is a manual process the previous contractors added to help resolve issues that could occur during the order process. It doesn't happen very often but I also don't know if this PHP code is called during the submit order. I don't have any way to contact this contracting company, no longer in business. It's possible they may have used cron to pull new orders and send to Celigo but I have no access to the actual host server. I have access to the code in Sharepoint via WinSCP, but I'm not able to login to the actual host server. If I could, I'd be able to pull up the crontask and see if there are any cron jobs.  Outside of this, where would I find in Hikashop/Joomla where the Finish button process is handled?")*

Hi,

I would recommend downloading all the files of the website and doing a search on all the files to find what you need. Otherwise, it's hard to say where is what as there are many ways to do it.

If it was done correctly, then it should be in a plugin of either the groups hikashop, hikashoppayment, hikashopshipping or system, and it should implement one of the order events:
[ www.hikashop.com/support/documentation/6...mentation.html#order](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#order)
So if the search for celigo code doesn't yield anything, you could search for the onAfterOrderCreate or onAfterOrderUpdate events in the plugins of these groups.

Now, it's also possible, but a lot less likely, that the developer created an override of class.order in order to add its code to the
save method ( as per [ www.hikashop.com/support/documentation/6...ntation.html#classes](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#classes)
). But I doubt it.
Another possibility would be that the code is added in the core files of HikaShop in administrator/components/com_hikashop/classes/order.php in the save method.
Another possibility would be that the developer added the connection to celigo in a view override of the thank you page so you could check if you have files in the templates/YOUR_TEMPLATE/html/com_hikashop/checkout / folder.
A system plugin could also be coded to intercept the thank you page processing, or the payment notification request from the payment gateway, with joomla events like onAfterRoute or onAfterInitialize and do its thing. But I doubt it too.
However, we usually don't recommend the last 4 possibilities.

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

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