my site
http://girlthich.com/when i install Jcomment in my site. It works so cool with NEWS but not work vituamart.
when i enter a comments, error " please enter your name"
I try disable "name" then it requires " Please enter your email"
you can try write for this produce
http://girlthich.com/a/stud100.htmlearlier, to vituamart work, I follow the instructions
Integration of JComments to VirtueMart
Integration with VirtueMart 1.1.4
1. Open file /administrator/components/com_virtuemart/html/shop.product_details.php
2. Find the lines:
3. /*** Show all reviews available ***/
4. $product_reviews = ps_reviews::product_reviews( $product_id );
5. /*** Show a form for writing a review ***/
6.
7. if( $auth['user_id'] > 0 ) {
$product_reviewform = ps_reviews::reviewform( $product_id );
and replace them with:
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 = "";
8. Open file /administrator/components/com_virtuemart/html/shop.browse.php
9. Find and delete (comment) the following lines:
10. if (PSHOP_ALLOW_REVIEWS == '1' && @$_REQUEST['output'] != "pdf") {
11. // Average customer rating: xxxxx
12. // Total votes: x
13. $product_rating = ps_reviews::allvotes( $db_browse->f("product_id") );
14. }
15. else {
16. $product_rating = "";
}
17. Go to VirtueMart component configuration page and select by checkmark the «Enable Customer Review/Rating System» option to «Yes»
Integration with VirtueMart 1.0
1. Open file /administrator/components/com_virtuemart/html/shop.product_details.php
2. Find the lines:
3. /*** Show all reviews available ***/
4. $product_reviews = ps_reviews::product_reviews( $product_id );
5. /*** 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 = "";
}
6. Open file /administrator/components/com_virtuemart/html/shop.browse.php
7. Find and delete (comment) the following lines:
8. $product_rating = $VM_LANG->_PHPSHOP_CUSTOMER_RATING .": <br />";
$product_rating .= ps_reviews::allvotes( $db_browse->f("product_id") );
9. 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.
Thank in advance!