- 帖子: 34
- 收到的致谢 0
置換成:/*** Show all reviews available ***/
$product_reviews = ps_reviews::product_reviews( $product_id );
/*** Show a form for writing a review ***/
if( $auth > 0 ) {
$product_reviewform = ps_reviews::reviewform( $product_id );
global $mainframe;
$comments = $mainframe->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
$product_reviews = JComments::showComments($product_id, 'com_virtuemart', $product_name);
$product_reviewform = "";
if (PSHOP_ALLOW_REVIEWS == '1' && @$_REQUEST != "pdf") {
// Average customer rating: xxxxx
// Total votes: x
$product_rating = ps_reviews::allvotes( $db_browse->f("product_id") );
}
else {
$product_rating = "";
}