I need to disable the cancellation of orders that "meet" a certain criteria.
Basically ,i need to check if the order id exists in a custom table, and if it does, cancellation from the order form is wont be allowed but it can still be canceled programmatically.
Can any of you tell me how this could be done?
Best Answer
Ok I found a solution for this one. Solution is based on this tutorial
Rahaha\RahahaWebService\etc\di.xml
Rahaha\RahahaWebService\Plugin\Block\Widget\Button\Toolbar.php