Order API function

  • Posts: 1119
  • Thank you received: 114
7 years 6 months ago #269554

Hi,

I do have custom plugin with function "onAfterOrderCreate". It sends data layer to GTM after order is created.

Now question. I have looked hikashop documentation and couldn't find function for order refunded. I would like to send data after order is refunded.

Which one of the functions I should use?

Many thanks

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
7 years 6 months ago #269558

Hello,

You have to use the trigger "onAfterOrderUpdate" and check the order status modification.

Please understand that it can have an "refund" trigger because there is no "refund" action ; there is a modification of the order status and you can create has many statuses that you want.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 1119
  • Thank you received: 114
7 years 6 months ago #269625

Hi,

I see. Thank you Jerome.

Have a great day

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

Time to create page: 0.049 seconds
Powered by Kunena Forum