update order status

  • Posts: 252
  • Thank you received: 1
6 years 4 months ago #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

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
6 years 4 months ago #284043

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
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

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

Time to create page: 0.057 seconds
Powered by Kunena Forum