alexburn Posted March 4, 2009 at 11:20 AM Share Posted March 4, 2009 at 11:20 AM 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
Alejandro Posted March 4, 2009 at 12:21 PM Share Posted March 4, 2009 at 12:21 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
alexburn Posted March 4, 2009 at 12:34 PM Author Share Posted March 4, 2009 at 12:34 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted March 4, 2009 at 12:45 PM Share Posted March 4, 2009 at 12:45 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts