Front-end order cancel

  • Posts: 1119
  • Thank you received: 114
5 years 5 months ago #299871

Hi,

Is there a way to check by who order was cancelled? As example:

If order was cancelled by user in front-end echo this, if order was cancelled by admin in back-end echo this...

Couldn't find any related variable to this....

Kind Regards

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

  • Posts: 1119
  • Thank you received: 114
5 years 5 months ago #299873

P.S. I am talking about order show.php file.

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

  • Posts: 81515
  • Thank you received: 13068
  • MODERATOR
5 years 5 months ago #299875

Hi,

Yes, you need to look at the hikashop_history table for the first entry with the status cancelled for the order. There, check the history_user_id. If it corresponds to the order_user_id, it means that the order was cancelled by the user, otherwise, it was cancelled by the admin.
So that will require a MySQL query.

The following user(s) said Thank You: kyratn

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

Time to create page: 0.058 seconds
Powered by Kunena Forum