Developer forum

Forum » Development » DW WebAPI uses stock provider?

DW WebAPI uses stock provider?

Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hello there,

Is the DW WebAPI calling the stock level providers? If so, which method is being called?
Currently I have the 3 overloads for FindStockLevel implemented and none is being called.

Thanks,
BR, Mario


Replies

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Any thoughts?

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

bump

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Actually, I just checked the code and it's not using the any stock provider. On ViewEngine.cs: propertyFiller.Fill(model, nameof(model.StockLevel), () => product._stock);

Is this planned to be changed? Live prices are working on webapi but live stock doesn't, so this is a big blocker for us.

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

I really hope that you that will look into this, as this is also a blocker for us.

 

Best regards,

Anders

 

You must be logged in to post in the forum