diff --git a/guides/plugins/plugins/checkout/order/listen-to-order-changes.md b/guides/plugins/plugins/checkout/order/listen-to-order-changes.md index 37729602d5..1ed24b412a 100644 --- a/guides/plugins/plugins/checkout/order/listen-to-order-changes.md +++ b/guides/plugins/plugins/checkout/order/listen-to-order-changes.md @@ -96,8 +96,8 @@ class ListenToOrderChanges implements EventSubscriberInterface if (!$command instanceof ChangeSetAware) { continue; } - - if ($command->getDefinition()->getEntityName() !== OrderDefinition::ENTITY_NAME) { + // $command->getDefinition()->getEntityName() before Shopware 6.6.3.0 + if ($command->getEntityName() !== OrderDefinition::ENTITY_NAME) { continue; }