KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: tqumhieh on February 25, 2013, 02:55:00 pm

Title: Product Rating
Post by: tqumhieh on February 25, 2013, 02:55:00 pm
Hi Guys, is Product Rating a value that I have to set manually or is it calculated automatically? i'm calling ProductIf.getRating() and it always return null
Title: Re: Product Rating
Post by: ryan on February 25, 2013, 09:28:40 pm
It is calculated automatically. You can see this on our online demo http://www.konakart.com/konakart/Welcome.action if you register and write a review.
Title: Re: Product Rating
Post by: tqumhieh on February 26, 2013, 06:21:27 am
However this value is always returning null in my environment. Specific review rating is valid, but average product rating is always null, do I need to configure anything for it to work ?
Title: Re: Product Rating
Post by: ryan on February 26, 2013, 08:52:12 am
No, it should work OTB.
Title: Re: Product Rating
Post by: tqumhieh on February 26, 2013, 11:23:54 am
Unfortunately it isn't  do so. any idea?
Title: Re: Product Rating
Post by: ryan on February 26, 2013, 11:36:23 am
Our online demo is an OTB installation so I'm surprised that your installation works differently. Whenever a a review is inserted, the number of reviews and the average rating attributes on the product object are updated.
Title: Re: Product Rating
Post by: tqumhieh on February 26, 2013, 11:40:31 am
im using the community edition, does that make any difference?
Title: Re: Product Rating
Post by: tqumhieh on February 26, 2013, 04:36:49 pm
I the latest version once again and install it, using the server APIs always return null value for rating. it seems the client API do its own calculation to return the rating