Hi all,
I currently have Virtuemart 1.14, Joomla 1.5.18 & JComments 2.3
I am having some problems integrating JComments into Virtuemart as per the instructions....
When editing shop.product_details the following error comes up when trying to open a product:
Parse error: syntax error, unexpected $end in /home/nationa1/public_html/administrator/components/com_virtuemart/html/shop.product_details.php on line 455
When I delete the code in shop.browse, an error comes up when trying to open any of the categories in virtuemart.
What am I doing wrong here?
I tried copying the whole code but exceeded 20000 characters, so I cut it short...
So from this:
/* SHOW RATING */
$product_rating = "";
//lamnn
//if (PSHOP_ALLOW_REVIEWS == '1') {
$product_rating = ps_reviews::allvotes( $product_id );
//}
$product_reviews = $product_reviewform = "";
/* LIST ALL REVIEWS **/
if (PSHOP_ALLOW_REVIEWS == '1') {
/*** Show all reviews available ***/
$product_reviews = ps_reviews::product_reviews( $product_id );
/*** Show a form for writing a review ***/
//lamnn
//if( $auth['user_id'] > 0 ) {
$product_reviewform = ps_reviews::reviewform( $product_id );
//}
}
?>
To this:
<?php
/* SHOW RATING */
$product_rating = "";
//lamnn
//if (PSHOP_ALLOW_REVIEWS == '1') {
$product_rating = ps_reviews::allvotes( $product_id );
//}
$product_reviews = $product_reviewform = "";
/* LIST ALL REVIEWS **/
if (PSHOP_ALLOW_REVIEWS == '1') {
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 = "";
//}
}