Page 1 of 1
Auto Enable Reviews
Posted: Sun Dec 06, 2009 7:06 am
by Prepared
I would like to auto enable the reviews. I have it sending me an email already, but would like to use that just to check on the reviews as they come in. Any way to make it so I do not have to go in to each review and enable it?
Re: Auto Enable Reviews
Posted: Tue Nov 29, 2011 5:48 pm
by NewIdea
I'm looking for this feature too.
Re: Auto Enable Reviews
Posted: Tue Nov 29, 2011 6:56 pm
by uksitebuilder
edit: catalog/model/catalog/review.php
find
Code: Select all
public function addReview($product_id, $data) {
$this->db->query("INSERT INTO " . DB_PREFIX . "review SET author = '" . $this->db->escape($data['name']) . "', customer_id = '" . (int)$this->customer->getId() . "', product_id = '" . (int)$product_id . "', text = '" . $this->db->escape(strip_tags($data['text'])) . "', rating = '" . (int)$data['rating'] . "', date_added = NOW()");
}
change to
Code: Select all
public function addReview($product_id, $data) {
$this->db->query("INSERT INTO " . DB_PREFIX . "review SET author = '" . $this->db->escape($data['name']) . "', customer_id = '" . (int)$this->customer->getId() . "', product_id = '" . (int)$product_id . "', text = '" . $this->db->escape(strip_tags($data['text'])) . "', rating = '" . (int)$data['rating'] . "', status = '1', date_added = NOW()");
}
Re: Auto Enable Reviews
Posted: Sun Sep 16, 2012 12:30 am
by tommy smith
Thanks, it's working, but the customer had refresh page to see their review. How can I make it auto refresh or see it immediately after they review !?!
Re: Auto Enable Reviews
Posted: Tue Sep 25, 2012 6:22 am
by aaronrrc
Thanks!!, it worked but I want to auto reload too, did you find a solution?
Re: Auto Enable Reviews
Posted: Wed Jul 01, 2015 3:57 pm
by rtrtrt
Thanks Guru, it works.