Post by Prepared » Sun Dec 06, 2009 7:06 am

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


Newbie

Posts

Joined
Sun Dec 06, 2009 7:02 am

Post by NewIdea » Tue Nov 29, 2011 5:48 pm

I'm looking for this feature too.

Newbie

Posts

Joined
Tue Nov 29, 2011 5:43 pm

Post by uksitebuilder » Tue Nov 29, 2011 6:56 pm

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()");
	}

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by tommy smith » Sun Sep 16, 2012 12:30 am

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 !?!

Newbie

Posts

Joined
Tue Jul 31, 2012 12:26 am

Post by aaronrrc » Tue Sep 25, 2012 6:22 am

Thanks!!, it worked but I want to auto reload too, did you find a solution?

Newbie

Posts

Joined
Sat Jun 09, 2012 1:03 pm

Post by rtrtrt » Wed Jul 01, 2015 3:57 pm

Thanks Guru, it works.

Newbie

Posts

Joined
Fri Jun 19, 2015 3:59 pm
Who is online

Users browsing this forum: No registered users and 111 guests