kev83 wrote:We created a custom CatalogController which returns a specific custom model. This works fine, until we try to use Nop Ajax Filters, because an incorrect model is returned by getFilteredProducts.
Any thoughts on how I can solve this, or work around it? Or is what I am trying to do totally illegal?
Hi kev83,
What you are trying to do doesn't seem right to me.
All you need to do is to hook after the GetFilteredProducts method is called and add something to the model, right?
In that case you just need to use an ActionFilter that will modify the model after the action GetFilteredProducts is executed.
Please note that there are templates in the Ajax Filters plugin that expect exactly the same model that the GetFilteredProducts action returns. You can refer to
this article about the templates used by the Ajax Filters.
I hope this helps!
p.s: About the error you get: It is strange as the Ajax Filters are built with all the .dlls available in the official version of nopCommerce 3.7.