Post by AnonyMoose » Tue Apr 24, 2012 7:20 pm

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.

New member

Posts

Joined
Wed Jul 20, 2011 5:35 pm

Post by Avvici » Tue Apr 24, 2012 8:47 pm

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"

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by AnonyMoose » Tue Apr 24, 2012 9:15 pm

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..

New member

Posts

Joined
Wed Jul 20, 2011 5:35 pm
Who is online

Users browsing this forum: No registered users and 9 guests