restart order status from "confirmed" to "created" automatically sometimes.

  • Posts: 170
  • Thank you received: 7
1 year 3 months ago #348846

hi
some times when some of my user purchase some product the order status change automatically to created after it is confirmed. please look at the attached picture:



I could not guess any reason and I don't even know under what conditions it occurs so that I can fix it.
also maybe you see some non-english character, it is translated of
AUTOMATIC_PAYMENT_NOTIFICATION
AUTOMATIC_PAYMENT_NOTIFICATION
AUTOMATIC_PAYMENT_NOTIFICATION
AUTOMATIC_PAYMENT_NOTIFICATION
ORDER_CREATED

also i use trigger for enrol users to some course via custom hikashop plugin.but my problem is not related my custom plugin and it work correctly and just problem in History of order. i want to get list of confimed order from hikashop and i can not because final status similar orders is created.
Also, I can't guess that this problem is related to the payment gateway plugin. Because this problem occurs with another plugin on another site at some times and for some users for some products.

Attachments:
Last edit: 1 year 3 months ago by sadaf3d.

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

  • Posts: 4540
  • Thank you received: 612
  • MODERATOR
1 year 3 months ago #348852

Hello,

We will need these elements in order to better understand the situation, so can you provide :
1. Your Order Statuses listing complete screenshot (System dropdown => Order Statuses)
2. Precise the Payment plugin precise name used in your specific case
3.Your relative payment method settings screenshot

Awaiting your elements to progress
Regards

Last edit: 1 year 3 months ago by Philip.

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

  • Posts: 170
  • Thank you received: 7
1 year 2 months ago #348979

Hello and excuse me for late to reply.
for
1-



2-
it is for iranian payment gateway but it seems not have any problem. but you understand better than me.
3-

Attachments:
Last edit: 1 year 2 months ago by nicolas.

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

  • Posts: 81597
  • Thank you received: 13080
  • MODERATOR
1 year 2 months ago #348989

Hi,

I checked the code of the plugin, and I think it comes from the plugin code.
I would recommend adding the code:

if($dbOrder->order_status == $this->payment_params->verified_status)
 return;
before the line:
if (!empty($_GET['Authority'])) {
That way, if the order has already been confirmed, it won't do anything even if the payment gateway contacts it several times.
The best thought would be to report the issue to the developer of the plugin, like you did here, to let them know. They have a better understanding than me on how the plugin and the payment gateway work, and might prefer another kind of solution.

The following user(s) said Thank You: sadaf3d

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

Time to create page: 0.075 seconds
Powered by Kunena Forum