Developer forum

Forum » Development » StockLevelProvider not used in ProductViewModel

StockLevelProvider not used in ProductViewModel

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

We are experiencing that our custom StockLevelProvider is not hit when the using the ProductViewModel in the ProductCatalog.
Is it by design that the StockLevelProvider not should be used anymore?

 

Best regards, Anders


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Anders,

 

We seem to be experiencing the same thing and was reported here https://doc.dynamicweb.com/forum/development/development/dw-webapi-uses-stock-provider. In our case it's because of LiveIntegration. Not sure if you have the same use case, but definitely seems to be the same issue.

 

Best Regards,

Nuno Aguiar

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nuno,

 

Thanks for pointing me to this new behaviour, which I really hope can be changed.

 

Best regards, Anders

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Anders,

 

Me too. We keep running into other things like that.

 

Best Regards,

Nuno Aguiar

 
Umar Farooq
Reply

Any news regarding this?

 

BR,

Umar

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

This issue has been fixed.

ProductViewModel.StockLevel - This property has been changed and will now call stock level providers (with fallback value).

The change will be out with 9.14.2
If you need it right now then you can grab the latest Dynamicweb.Ecommerce package from nuget.

Best regards,
Morten

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Morten,

 

That's awesome. We also recently noticed this happening for the PriceProvider. For example, getting multiple/quantity prices (aka Price Matrix) from Live Integration. Has that been accounted for as well?

 

Best Regards,

Nuno Aguiar

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Nuno,

That sounds like a different issue.
Can you create a separate thread and provide some details/examples?

/Morten

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Morten,

 

Sure thing. I did just that in https://doc.dynamicweb.com/forum/development?ThreadID=84388

 

Any help is appreciated because we are trying to go live with a projec that requires this and we wanted to avoid unnecessary customizations and workarounds.

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum