Jump to content

VirtueMart category not showing ratings


alexburn

Recommended Posts

Hi,

 

Downloaded VirtueMart files and uploaded to:

/administrator/components/com_virtuemart/html/

 

Inserted following code into my browse template located in:

/components/com_virtuemart/themes/default/templates/browse/

 

<?php
if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR);	
require('components' . DS . 'com_jreviews' . DS . 'jreviews' . DS . 'framework.php');

$JreParams['data']['extension'] = 'com_virtuemart';
$JreParams['data']['tmpl_suffix'] = '';
$JreParams['data']['controller'] = 'everywhere';
$JreParams['data']['action'] = 'category';
$JreParams['data']['listing_id'] = $product_id;
// Load dispatch class
$Dispatcher = new S2Dispatcher('jreviews');
$jreCategory = $Dispatcher->dispatch($JreParams);
$product_rating = $jreCategory['output'];
?>

 

But still no ratings show in my category view.

 

Here is the exact code of my browse template:

<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
mm_showMyFileName(__FILE__);
?>
<div style="width:100%;padding: 0px 3px 3px 3px;">
    <div align="center" style="float:left;width:32%" >
    	<a style="text-decoration:none" href="<?php echo $product_flypage ?>">
          <?php echo ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ?>
       <br/>
<?php echo $product_name ?></a>
    </div>
  <br style="clear:both;" />
<?php
	if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR);	
	require('components' . DS . 'com_jreviews' . DS . 'jreviews' . DS . 'framework.php');
	$JreParams['data']['extension'] = 'com_virtuemart';
	$JreParams['data']['tmpl_suffix'] = '';
	$JreParams['data']['controller'] = 'everywhere';
	$JreParams['data']['action'] = 'category';
	$JreParams['data']['listing_id'] = $product_id;
	// Load dispatch class
	$Dispatcher = new S2Dispatcher('jreviews');
	$jreCategory = $Dispatcher->dispatch($JreParams);
	$product_rating = $jreCategory['output'];
?>
</div>

 

Any thoughts on what I should do now?

 

Thanks

Alex

Link to comment
×
×
  • Create New...