Hello,
We need to display a list of products that are in stock. I tried to change a query/index and add that the stock is greater than zero. This works, but the problem is the stock level. The stock comes from the NAV live integration and we do not have any information about the stock during rendering (preparing the index query in ecommerce.dll) the list/pagination after we get the stock information, but that is too late. In this process, we have a list (empty list) or a list where some products are not in stock. This is the situation we need to avoid. How can I create a list of products and paginate it with data from live integration? The stock level depends on the customer (B2C, B2B, B2I, other customer types), the location of the customer, and the stock level of the customer region. The full stock logic is in NAV. Also, with some subscribers we have tried to intercept a process without success. Some types of subscribers we have tried:
[Subscribe(Dynamicweb.Indexing.Notifications.Query.AfterQuery)] [Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Querying.AfterQuery)][Subscribe(Dynamicweb.Indexing.Notifications.Query.BeforeQuery)] [Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Querying.BeforeQuery)] [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforePaging)] [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforeRender)] ... DW version 9.15,8 Swift 1.21.0