Here is a work item. I'm sure we'll find a way to support it
And done. Please see this commit
Hi Andrei,
Great! It looks quite promising!
I will give it a try on Monday and will let you know if everything is fine!
Many thanks again for the quick solution!
Boyko
And done. Please see this commit
Hi Andrei,
Great! It looks quite promising!
I will give it a try on Monday and will let you know if everything is fine!
Many thanks again for the quick solution!
Boyko
Hi Andrei,
I finally had a chance to test this.
It turned out that the current implementation will not work in many cases when the Model is not exactly NopBaseModel but a collection of NopBaseModels.
Here is an example:
The HomePageProductsViewComponent returns IEnumerable<ProductOverviewModel> as a Model rather than BaseNopModel.
The check in the NopViewComponent will cause no event to be published:
if (model is BaseNopModel)
You should handle all the other possible Model scenarios in addition to the check above or at least the most common ones.
p.s: The same applies for the PublishModelEventsFilter
Thanks,
Boyko