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?
Eric Gallagher
http://www.preparedcatholic.com
http://www.parishwebassistant.com
edit: catalog/model/catalog/review.php
find
change to
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()");
}
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()");
}
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 !?!
Who is online
Users browsing this forum: No registered users and 111 guests