Closed r-martins closed 3 months ago
@r-martins $proceed must not be called in every branch, that is the sense of the around plugin. The original method and around
plugins following this very plugin are not called, which is correct. However, before
and after
plugins are not touched by this behavior. This is where the Magento docs might be misleading. So the behavior is intended and correct.
As we can see on line 75 of TransportPlugin.php, the $proceed() is not always called.
Quoting the around plugin docs:
I still haven't confirmed, but this can result in problems related to core saving address plugins and later avoiding the customer to place a second order using the same address.