order cancelled when payment is aborted

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
8 years 7 months ago #235818

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

When a customer aborts the payment (Paypal or iDEAL) for any reason, the orderstatus is automatically set to cancelled. I tried all kind of settings for the "Unpaid order statuses" and "Cancelled order statuses", but can't get it to a setting that sets the status to "created" instead of "cancelled". The customer has to be able to pay with another payment method.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 7 months ago #235821

Hi,

It's normal that the order is cancelled when the payment is aborted.
Normally, at that point the customer is then brought back to the checkout so that it can pay again with the creation of a new order at the end of the checkout.
If that's not the case, it's probably that you don't have the "Clean cart when order is" setting set to "confirmed" in the HikaShop configuration. So please check on that.

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
8 years 7 months ago #235952

Hi,

That's doesn't look very customer friendly, does it? It often happens when a payment provider or bankwebsite has some kind of online problem. The customer doesn't want to cancel the order, just choose another way to pay. Recreating the order from scratch is not what this customer wants to do. Especially not if the order was created earlier and a personalized design was made for him/her wich is attached to this actual order. How can I change this so that the order still will be active after a aborted payment?

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 7 months ago #236092

Hi,

Normally, when the user cancels the payment and returns to the checkout with his order cancelled, he can choose another way to way and click on finish again to go the the other payment plateform for the payment. The system will just recreate a new order with the exact same data as the first one except for the payment method.
So it does what you're talking about.

Nevertheless, if you want to not have the cancelled orders, you can remove the line:
$class->save($newOrder);
in the file components/com_hikashop/controllers/order.php
That way, the order will stay created.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 7 months ago #236093

Hi,

Normally, when the user cancels the payment and returns to the checkout with his order cancelled, he can choose another way to way and click on finish again to go the the other payment plateform for the payment. The system will just recreate a new order with the exact same data as the first one except for the payment method.
So it does what you're talking about.

Nevertheless, if you want to not have the cancelled orders, you can remove the line:
$class->save($newOrder);
in the file components/com_hikashop/controllers/order.php
That way, the order will stay created.

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
8 years 7 months ago #237099

Yes, that would be a good solutuion for me, but then the customer also won't be able to cancel the order when he/she wants to for any other reason.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 7 months ago #237105

He can, thanks to the cancel button on the orders listing.
This button will display if you configure the statuses in the setting "Cancellable orders statuses" of the HikaShop configuration.

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
8 years 7 months ago #237322

I know, but when I remove the line "$class->save($newOrder);", the order isn't cancelled when hitting the cancel button.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 7 months ago #237361

Hi,

Oh, I see.
Then instead of deleting that line, add that code before it:

$redirect_url = JRequest::getVar('redirect_url');
		if( empty($redirect_url) )

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
8 years 7 months ago #237511

Hi,

Thanks, I think that last line must be "if(!empty($redirect_url) )".

Made the change, works fine.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum