Integration of JComments to VirtueMart
|
- Open file /administrator/components/com_virtuemart/html/shop.product_details.php
- Find the lines:
/*** 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 );
and replace them 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 = "";
}
- Open file /administrator/components/com_virtuemart/html/shop.browse.php
- Find and delete (comment) the following lines:
$product_rating = $VM_LANG->_PHPSHOP_CUSTOMER_RATING .": <br />";
$product_rating .= ps_reviews::allvotes( $db_browse->f("product_id") );
- Go to VirtueMart component configuration page and select by checkmark the «Enable Customer Review/Rating System» option to «Yes»
After all above changes were done the visitors of internet shop based on VirtueMart component will be able to leave comments to all goods using all possibilities of JComments.
Sigsiu Online Business Index 2)
Choose «Plugins» in left menu
Click on «Plugin Manager» in left menu
Browse the path to plugin's distributive and press «Install»
Replace /components/com_sobi2/sobi2.details.tmpl.php by the file of the same name from the archive and add the following code to SOBI2 template:
getPlugin($mySobi,'jComments');
in exact place where you would like to display the comments.
After all above changes were done the visitors will be able to leave comments to all items if SOBI2 catalogue .
See also:
|