-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Severe errors after deleting orders (Sorting number of a complete order cannot be changed) #28
Comments
A workaround to allow orders to be placed again. Attention, this WILL change orders sorting number, and so most possibly the order number shown to the customer.
That fixes merx()->completePayment() returning the exception. Orders can be placed again. |
Hey @plagasul, thank you for your detailed comments. What you experienced is somehow intended behavior. It’s intended that orders may not be deleted because
That’s why I added the If you really want to delete test orders you should delete the order pages via ftp or ssh. Another way to test orders could be a separate domain (test.domain.tld) wich points to the same kirby installation. You can set a custom configuration with a custom orders page. // site/config.test.domain.tld.php
return [
'ww.merx.ordersPage' => 'test-orders',
]; What do you think, I’m open to your opinions. Should order pages be deletable? |
Thanks for answering @tobiasfabian I believe it would be enough that orders can't really be deleted at all, as in this case the user was able to delete them by merely pressing the button once again. Perhaps a warning somewhere in the docs so we can prepare for this with an approach such as the one you are proposing. Thanks for that. |
Similar discussion on Kirby forum. |
Trying to delete an order (such as a test sandbox order) results in the error message "Sorting number of a complete order cannot be changed." on top of the delete confirmation popup.
Clicking Delete again results in 'the page cannot be found' error:
...but deletes the order page.
Then errors start to happen. ->
So, as this is within a try / catch clause, apparently
merx()->completePayment($_GET);
fails.BUT the order appears in the panel orders page, and its payment show as complete.
It fails, but it completes.
Thank you
The text was updated successfully, but these errors were encountered: