Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Integration Virtuemart 1.14
Pages: [1]   Go Down
  Print  
Author Topic: Integration Virtuemart 1.14  (Read 1599 times)
0 Members and 1 Guest are viewing this topic.
danandel
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« on: August 16, 2012, 10:14:13 »

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:


Code:

/* 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:

Code:
<?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 "";
//}
}
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Integration Virtuemart 1.14
 
Jump to: