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: Help me - Jcomment don't work with vituamart
Pages: [1]   Go Down
  Print  
Author Topic: Help me - Jcomment don't work with vituamart  (Read 2218 times)
0 Members and 1 Guest are viewing this topic.
girlthich
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« on: September 10, 2011, 09:53:13 »

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.html

earlier, 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!
Logged
girlthich
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« Reply #1 on: September 10, 2011, 10:06:21 »

I said, I tried to install a different version of the web on the localhost via XAMPP and software work well with vituamart Jcomment. But the host does not. It took three weeks for this problem but have not found a cause
Logged
girlthich
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« Reply #2 on: September 14, 2011, 23:02:06 »

Smart.
i know you are very busy with your main job. I hope when you have free time, you enter here and answer my question.
Thank!  Huh
Logged
girlthich
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« Reply #3 on: October 11, 2011, 21:38:49 »

up. Hope you see my question!
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #4 on: October 11, 2011, 23:35:34 »

Seems this is because plugin Mootools Upgrade - try to disable it? This plugin causes JavaScript error:

Code:
Error: MooTools.upgradeLog is not a function
Source: http://girlthich.com/plugins/system/mtupgrade/mootools-uncompressed.js
Line: 6534

And this error stops JavaScript execution, so JComments does not initialized.

p.s. Sorry, I did not seen your question...
« Last Edit: October 11, 2011, 23:39:45 by smart » Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
girlthich
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« Reply #5 on: October 18, 2011, 22:35:37 »

It's great. When I disable Mootools Upgrade immediately its normal operation. Although previously I found out one more thing is it works fine on IE but not fifox.
Yours sincerely appreciate your support
If possible you can show me how you find it with an error of instrument? And how do I comment out the latest in mod_jcomments Virtuemart?
Wish you health and success
« Last Edit: October 18, 2011, 22:37:50 by girlthich » Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #6 on: October 19, 2011, 02:07:36 »

If possible you can show me how you find it with an error of instrument?
I am use Firefox browser and it has such feature as Error Console (Ctrl-Shift-J)... The same feature present in Chrome Browser... I do not sure about other one because I'm not use them

And how do I comment out the latest in mod_jcomments Virtuemart?
You should setup module parameter 'Source' with value 'com_virtuemart'
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
girlthich
Newbie
*

Karma: 0
Offline Offline

Posts: 9


Email
« Reply #7 on: October 22, 2011, 21:58:31 »

Thank you for your enthusiasm.
I tried and it worked fine. I have tried to both com_content, com_virtuemart "unfortunately it is a source of criticism.

I will write a review
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Help me - Jcomment don't work with vituamart
 
Jump to: