Deleting review doesn't delete rating in 1.5.1.3
3 posts
• Page 1 of 1
Deleting review doesn't delete rating in 1.5.1.3
I noticed that deleting review from Admin panel doesn't change product rating in OC 1.5.1.3, has this been fixed in any recent release? This can be an issue if you want to delete spammy reviews affecting product rating, also looks odd when products with 0 reviews have rating displayed.
- AnonyMoose
- Posts: 96
- Joined: Wed Jul 20, 2011 9:35 am
Re: Deleting review doesn't delete rating in 1.5.1.3
Oh yes it does. Ask the function:
That covers all fields it the table review, including "rating"
- Code: Select all
public function deleteReview($review_id) {
$this->db->query("DELETE FROM " . DB_PREFIX . "review WHERE review_id = '" . (int)$review_id . "'");
}
That covers all fields it the table review, including "rating"
-

avvici -arvixe- - Posts: 4408
- Joined: Tue Apr 05, 2011 4:09 am
- Location: Charlotte, NC
Re: Deleting review doesn't delete rating in 1.5.1.3
avvici wrote:Oh yes it does. Ask the function:
- Code: Select all
public function deleteReview($review_id) {
$this->db->query("DELETE FROM " . DB_PREFIX . "review WHERE review_id = '" . (int)$review_id . "'");
}
That covers all fields it the table review, including "rating"
You are right, clearing cache fixed this. Sorry to bother, topic can be removed..
- AnonyMoose
- Posts: 96
- Joined: Wed Jul 20, 2011 9:35 am
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests















