The view \Checkout\OpcShippingAddress.cshtml has model CheckoutShippingAddressModel
The breakpoint I placed at the top of the View (.cshtml):
@model CheckoutShippingAddressModel
<div class="checkout-data">
@if (Model.DisplayPickupInStore && Model.PickupPointsModel.AllowPickupInStore)
gets hit after the breakpoint I put at the bottom of
public virtual async Task<CheckoutShippingAddressModel> PrepareShippingAddressModelAsync(...
but before the breakpoint I set at the top of my plugin's
public async Task HandleEventAsync(ModelPreparedEvent<BaseNopModel> eventMessage)
My understanding is that the ModelPreparedEvent event handler should be executed first during the model preparation phase before the view rendering process.
What am I doing wrong?
(The ModelPreparedEvent 'examples' in the core source only deal with navigationModel.)