- Posts: 515
- Thank you received: 22
order cancelled when payment is aborted
- jouwnaambord.nl
-
Topic Author
- Offline
Less
More
10 years 5 months ago #235818
by jouwnaambord.nl
order cancelled when payment is aborted was created by jouwnaambord.nl
-- 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.
-- 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.
10 years 5 months ago #235821
by nicolas
Replied by nicolas on topic order cancelled when payment is aborted
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.
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.
- jouwnaambord.nl
-
Topic Author
- Offline
Less
More
- Posts: 515
- Thank you received: 22
10 years 5 months ago #235952
by jouwnaambord.nl
Replied by jouwnaambord.nl on topic order cancelled when payment is aborted
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?
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.
10 years 5 months ago #236092
by nicolas
Replied by nicolas on topic order cancelled when payment is aborted
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.
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.
10 years 5 months ago #236093
by nicolas
Replied by nicolas on topic order cancelled when payment is aborted
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.
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.
- jouwnaambord.nl
-
Topic Author
- Offline
Less
More
- Posts: 515
- Thank you received: 22
10 years 5 months ago #237099
by jouwnaambord.nl
Replied by jouwnaambord.nl on topic order cancelled when payment is aborted
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.
10 years 5 months ago #237105
by nicolas
Replied by nicolas on topic order cancelled when payment is aborted
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.
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.
- jouwnaambord.nl
-
Topic Author
- Offline
Less
More
- Posts: 515
- Thank you received: 22
10 years 5 months ago #237322
by jouwnaambord.nl
Replied by jouwnaambord.nl on topic order cancelled when payment is aborted
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.
10 years 5 months ago #237361
by nicolas
Replied by nicolas on topic order cancelled when payment is aborted
Hi,
Oh, I see.
Then instead of deleting that line, add that code before it:
Oh, I see.
Then instead of deleting that line, add that code before it:
Code:
$redirect_url = JRequest::getVar('redirect_url');
if( empty($redirect_url) )
Please Log in or Create an account to join the conversation.
- jouwnaambord.nl
-
Topic Author
- Offline
Less
More
- Posts: 515
- Thank you received: 22
10 years 5 months ago #237511
by jouwnaambord.nl
Replied by jouwnaambord.nl on topic order cancelled when payment is aborted
Hi,
Thanks, I think that last line must be "if(!empty($redirect_url) )".
Made the change, works fine.
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.263 seconds