Contributions
Reviews in Article Info (Article Manager)
This contribution is a modification of Reviews Product Info v1.0.
The customer's reviews are display into the article_info.php bottom page. You can edit the number of reviews will displays, and can edit the buttons to write reviews.
Created by el_Juanky (Spain). Enjoy it!
| 25 Oct 2007 |
When you have installed the Review Aproval System you can also use it for this contribution.
The aprroval didn't work good with mne OSC. Maybe you also have the same problem..then replace this peace of code:
On Line 14 Find:
=====================
$reviews_query = tep_db_query("select r.reviews_id, left(rd.reviews_text, 100) as reviews_text, r.reviews_rating, r.reviews_read, r.date_added, r.customers_name from " . TABLE_ARTICLE_REVIEWS . " r, " . TABLE_ARTICLE_REVIEWS_DESCRIPTION . " rd where r.articles_id = '" . (int)$article_info['articles_id'] . "' and r.reviews_id = rd.reviews_id and rd.languages_id = '" . (int)$languages_id . "' order by r.reviews_id desc");
AND REPLACE WITH:
=====================
$reviews_query = tep_db_query("select r.reviews_id, left(rd.reviews_text, 100) as reviews_text, r.reviews_rating, r.reviews_read, r.date_added, r.customers_name from " . TABLE_ARTICLE_REVIEWS . " r, " . TABLE_ARTICLE_REVIEWS_DESCRIPTION . " rd where r.approved = 1 and r.articles_id = '" . (int)$article_info['articles_id'] . "' and r.reviews_id = rd.reviews_id and rd.languages_id = '" . (int)$languages_id . "' order by r.reviews_id desc");
| 10 May 2007 |
Note: Contributions are used at own risk.
