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

#   update order status

##

- **[twscott](/forum/user/43011-twscott "View twscott's Profile")**
- [![twscott's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/43011-twscott "View twscott's Profile") Topic Author
- [ Offline](/forum/user/43011-twscott)

Less More

- Posts: 252
- Thank you received: 1
-
-
-
-

8 years 11 months ago [\#284028](#284028) by [twscott](/forum/user/43011-twscott "View twscott's Profile")  *[update order status](/forum/29-payment-methods/893100-update-order-status#284028 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.6  Hi, We are using spgateway plugin as our payment method. SPGateway allow customer to pay by convenience store. We need to add some custom code when our system receive the change status （from created to confirmed) notification, but I don't know which program file to look into. Would you tell me which file should I find?  Thanks in advance Bestregards")* was created by *[twscott](/forum/user/43011-twscott "View twscott's Profile")*

-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.6

Hi,
We are using spgateway plugin as our payment method.
SPGateway allow customer to pay by convenience store. We need to add some custom code when our system receive the change status （from created to confirmed) notification, but I don't know which program file to look into. Would you tell me which file should I find?

Thanks in advance
Bestregards

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

8 years 11 months ago [\#284043](#284043) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[update order status](/forum/29-payment-methods/893100-update-order-status#284043 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.6  Hi, We are using spgateway plugin as our payment method. SPGateway allow customer to pay by convenience store. We need to add some custom code when our system receive the change status （from created to confirmed) notification, but I don't know which program file to look into. Would you tell me which file should I find?  Thanks in advance Bestregards")*

Hi,

You could directly edit the file plugins/hikashoppayment/spgateway/spgateway.php and add your code in the onPaymentNotification function.
However, I would rather recommend to create your own plugin of the group "hikashop" and implement the onAfterOrderUpdate function and check the order_status in $order there and then run your code:
[ www.hikashop.com/support/documentation/6...l#onAfterOrderUpdate](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onAfterOrderUpdate)
That way, you'll be able to easily update the payment plugin in the future if necessary.

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

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

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