Hi everybody!
I have a problem with a NotificationSubscriber, that subscribes to Dynamicweb.Notifications.eCommerce.ProductList.BeforeSort and removes som products from an instance of Dynamicweb.Extensibility.NotificationArgs that is delivered to OnNotify, if they are not in stock according to a webservice (livecheck against a stock-service).
When the logic is working correctly (or at least as I expect it to do :) ), the instance of Dynamicweb.Extensibility.NotificationArgs contains a product-list with all products on (not accounting on products pr. page). This is fine, but the problem is that this is not always how the products are delivered in the product-list on Dynamicweb.Extensibility.NotificationArgs. Sometimes the products are limited to the products pr. page, so if the products per page is limited to 10, then I am only handed 10 products in the Dynamicweb.Extensibility.NotificationArgs, even though there are more products. This is not how I expect it to work and obviously this is causing problems when the data is delivered to the frontend.
The modules seem to be alike. Can anyone help me figure out why this behaviour is occurring? It would certainly be appreciated :).