Developer forum

Forum » Ecommerce - Standard features » Update Comments/Review after batch import

Update Comments/Review after batch import

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

We have a customer who is batch importing product comments every 3 or 6 months. After that is done, we need to update the product's average rating and comment count, but apparently the CommentCount property is internal and we can't do that throught the API. Can this be achieved somehow, or do I need to update in the database directly and then clear the cache? Or can the CommentCount property be made public?

 

I am attaching a screendump of the code. We're getting a scheduled task set up so that the customer can run it whenever they want.

 

Best Regards,

Nuno Aguiar

2022-03-03_17-39-53.jpg

Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

I have changed it to being public. Out in the next ecommerce package.

Votes for this answer: 1
 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Perfect, thanks Nicolai

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

I see this in 9.13, but this customer (Biolegend) will not want to upgrade to it anytime soon (long story), but we're considering the latest 9.10. Could that be added to it by any chance?
Or maybe a pirate dll would do the trick for now.

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum