Front-end order cancel
7 years 11 months ago #299871
by kyratn
Front-end order cancel was created by kyratn
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
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.
7 years 11 months ago #299873
by kyratn
Replied by kyratn on topic Front-end order cancel
P.S. I am talking about order show.php file.
Please Log in or Create an account to join the conversation.
7 years 11 months ago #299875
by nicolas
Replied by nicolas on topic Front-end order cancel
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.
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.170 seconds