Sulpher your explanation doesn't work to. You say that we need to find this code
/*** Show all reviews available ***/
$product_reviews = ps_reviews::product_reviews( $product_id );
/*** Show a form for writing a review ***/
$product_reviewform = ps_reviews::reviewform( $product_id );
but I find only this code:
/*** Show all reviews available ***/
$product_reviews = ps_reviews::product_reviews( $product_id );
/*** Show a form for writing a review ***/
if( $auth['user_id'] > 0 ) {
$product_reviewform = ps_reviews::reviewform( $product_id );
}
}
Then I deleted that code and I replaced with
$comments = $mosConfig_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 = "";
}
and then I delete this code in shop_browse.php
if (PSHOP_ALLOW_REVIEWS == '1' && @$_REQUEST['output'] != "pdf") {
// Average customer rating: xxxxx
// Total votes: x
$product_rating = ps_reviews::allvotes( $db_browse->f("product_id") );
}
else {
$product_rating = "";
}
But it doesn't work!
I have Joomla 1.5.8, virtuemart 1.1.2 and Jom Comment 2.0 RC1 Build 218