Developer forum

Forum » Dynamicweb 10 » ProductViewModel price matrix live

ProductViewModel price matrix live

Mario Santos Dynamicweb Employee
Mario Santos
Reply

We are facing an issue where live price matrix prices are not getting returned by LiveIntegration price provider. I added some debug lines to identity the issue.

Our setup has Use unit prices checked, meaning the LiveIntegration ProductIdentifier will use it to the cache key. When method FindQuantityPriceInfos is called we can see the unit is not present. 

Currently using LiveIntegration 10.4.28, and DW Release Ring R2.

8:47:19 AM.548 DynamicwebLiveIntegration.ProductPriceProvider.FindPriceInfoWithContext product[id='64569' variantId='VO50' unitId='LB'] START
0 ms
1,048 ms
8:47:19 AM.548 DynamicwebLiveIntegration.ProductPriceProvider.FindPriceInfoWithContext 64569-025.VO50.LANG1.LB
0 ms
1,048 ms
8:47:19 AM.548 DynamicwebLiveIntegration.ProductPriceProvider.FindPriceInfoWithContext END
0 ms
1,048 ms
8:47:19 AM.555 DynamicwebLiveIntegration.ProductPriceProvider.FindQuantityPriceInfos START
7 ms
1,055 ms
8:47:19 AM.556 DynamicwebLiveIntegration.ProductPriceProvider.GetProductInfo productIdentifier 64569-025.VO50.LANG1
1 ms
1,056 ms
8:47:19 AM.556 DynamicwebLiveIntegration.ProductPriceProvider.GetUnitPrices null
0 ms
1,056 ms
8:47:19 AM.556 DynamicwebLiveIntegration.ProductPriceProvider.FindQuantityPriceInfos unitPrices 0
0 ms
1,056 ms
8:47:19 AM.556 DynamicwebLiveIntegration.ProductPriceProvider.FindQuantityPriceInfos END
0 ms
1,056 ms

Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Mario,
would it work if the method FindQuantityPriceInfos(PriceContext context, Product product)
will use the unit Id from the product.DefaultUnitId property (when Unit prices option is ON) to find the product info from the cache?
If yes, I'll make a bug to fix it.
BR, Dmitrij

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Dmitrij,

Yes, that would work. I did not suggested it since wasn't sure if would be the fixed in LiveIntegration or actual DW Ecom logic.

BR Mario

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Mario,
it is now fixed in the Live integration 10.4.31.
BR, Dmitrij

Votes for this answer: 1
 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Dmitrij,

Thanks, we will update our solutions. Will let you know if we ran into issues.

BR, Mario

 

You must be logged in to post in the forum