Skip to content

magento man

sales_order_item_cancel Event Not Triggered when Canceling Order Programmatically using $this->orderManagement->cancel($orderId);

I’m currently working on a module that involves the programmatic cancellation of orders. To cancel orders, I am using $this->orderManagement->cancel($orderId); in my code. This appears to be working correctly as the order status and state change to ‘canceled’ and the… Read More »sales_order_item_cancel Event Not Triggered when Canceling Order Programmatically using $this->orderManagement->cancel($orderId);

Magento 2.4: Unable to apply setup/src/Magento/Setup patch

I’m trying to apply a patch but it’s not working: composer.json “patches”: { “magento/setup”: { “Setup Patch Take4”: “patches/composer/setup_patch.patch” } } setup_patch.patch diff –git a/Model/Installer.php b/Model/Installer.php index ddd1ab51a..b9175dbad 100644 — a/Model/Installer.php +++ b/Model/Installer.php @@ -1047,7 +1047,7 @@ class Installer }… Read More »Magento 2.4: Unable to apply setup/src/Magento/Setup patch