Categories
CMS Magento Mastering Development

Magento 2 plugins (interceptor) beforeCancel() making the cancel order bug

I have created a plugin which intercept the cancel function from the interface Magento\Sales\Api\OrderManagementInterface, the plugin intercept before the cancel function is called. My problem is that when my module is activated, I can’t cancel any orders, neither from the page admin/sales/order/view/order_id/10 or from the list of orders. For example, when i click the cancel […]

Categories
CMS Magento Mastering Development

Magento 2 plugins (interceptor) beforeCancel() making the cancel order bug

I have created a plugin which intercept the cancel function from the interface Magento\Sales\Api\OrderManagementInterface, the plugin intercept before the cancel function is called. My problem is that when my module is activated, I can’t cancel any orders, neither from the page admin/sales/order/view/order_id/10 or from the list of orders. For example, when i click the cancel […]