VirtueMart Forum

VirtueMart 2 + 3 + 4 => 3rd party extension => Topic started by: flo31 on March 16, 2012, 12:55:56 PM

Title: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: flo31 on March 16, 2012, 12:55:56 PM
This tutorial will allow you to use JComments 2.3.0 ajax system for displaying and managing comments on the VirtueMart 2 product pages.

STEP 1
Download Virtuemart 2.0.3c or newer and install it, or simply update your actual version.

STEP 2 Go into Virtuemart->Configuration then Shop Tab and click on Enable Joomla plugin

STEP 3 Then go to the Shop Front tab.
On the right side under 'Shopper Review/Rating System ', disable the first 2 params :

Enable Review System for : 'Disabled'
Show Review : 'Don't show'

and save.

Note : If you already have Virtuemart reviews, you will be able to import them to JComments.


STEP 4 Download JComments Component 2.3.0 Stable on http://www.joomlatune.com/jcomments-downloads.html and install it.

STEP 5 We are now going to hack JComments in order to support VM1 and VM2 (it only supports VM1 at this moment). This will allow you to get the integration working, and the possiblity to import the reviews from VM2.

Replace in your Joomla folder :


- /components/com_jcomments/plugins/com_virtuemart.plugin.php

- administrator/components/com_jcomments/admin.jcomments.migration.php

with the corresponding files, given in the following zip : Jcomments Hack Zip (https://flo31.olympe-network.com/jcomments_hack.zip)

STEP 6 Download, and Install the Virtuemart 2 - JComments Content Plugin (https://flo31.olympe-network.com/plugin_vmjcomments1.0.zip). Then enable it in the Joomla extensions manager.

And you are done !

You may set some params. Under Joomla, JComments → settings and the permissions tab.
Set the right permissions to your joomla user groups to allow them to use JComments functionnalities.

Now JComments is handling all Virtuemart Comments / Reviews, so you can use the power of JComments to manage them.

STEP 7 (Option)
Import your Virtuemart reviews into JComments . Go in JComments->Import, Virtuemart 2 reviews and click on import.

You can also use JComments for other components like K2, Articles...and all JComments modules will work (latest, latest commented, most commented, top posters).
You just have to set the source : com_virtuemart in the modules params if you want to display virtuemart comments.

FAQ :


I want to exclude virtuemart categories to not display comments on his products : In the plugin Virtuemart 2 - JComments Content parameters you can multiselect (with ctrl+click) virtuemart categories to exclude (In Joomla extensions->plugins)

I have excluded the virtuemart category Computers under the plugin and want to enable comments only for the Macbook Product :
You can force enabling or disabling comments for a product. Go under Virtuemart->product and go on the product page. Go to the description tab and click at the bottom of the editor :

- Click on JComments OFF button to force disabling comments
- Click on JComments ON button to force enabling comment

The plugin Virtuemart 2 - JComments Content Plugin reads this on the product page, takes it into account, and removes the tags from the product description, so it's not displayed in the frontend.

I want to stop using JComments :
There is not export function at this moment. You can uninstall JComments, and the reviews will remain in the database. Then retrieve the STEP 2 and STEP 3.

Note : If you have added a {Jcomments} tag in some products, go into Joomla extensions -> plugins management, plugin Virtuemart 2 - JComments Content Plugin and select 'no' for the 'Activate Plugin' param.

The plugin will only continue to remove the tags from the product description, but won't display JComments.
You can uninstall it, since you have removed all {Jcomments} tags in all product descriptions, but the plugin can stay here and do the job quite well.

You can report bugs here and I will fix them.
Title: Re: VirtueMart 2 - JComments 2.3.0 Integration. For Joomla 1.7 and 2.5 only
Post by: Anik on March 16, 2012, 13:00:54 PM
will it not work on vm 2.0.2 ?
Title: Re: VirtueMart 2 - JComments 2.3.0 Integration. For Joomla 1.7 and 2.5 only
Post by: flo31 on March 16, 2012, 13:04:44 PM
No, because it uses a new event which is only in the 2.0.3c version or newer.
Title: Re: VirtueMart 2 - JComments 2.3.0 Integration (Free). For Joomla 1.7 and 2.5 only
Post by: corymp on March 26, 2012, 22:50:43 PM
Tried this, cannot get it to work. wherever i put {jcomment} it just shows {jcomment} as text. How do you add the comments to products?

It works with articles when I select the categories in Jcomments backend. but even still, adding {jcomment} to an article still just shows the text.
Title: Re: VirtueMart 2 - JComments 2.3.0 Integration (Free). For Joomla 1.7 and 2.5 only
Post by: flo31 on March 29, 2012, 11:43:02 AM
It works. It is not Jcomment but {JComments ON} or {JComments OFF} like said in the post and there is a button for that at the bottom of the editor.
Title: Re: VirtueMart 2 - JComments 2.3.0 Integration (Free). For Joomla 1.7 and 2.5 only
Post by: corymp on March 29, 2012, 13:01:31 PM
Yeah I figured that out after, but it still wont show anything on my product pages. It seems like it recognizes the tag because it disappears. I have all plugins enabled. not sure what else to do
Title: Re: VirtueMart 2 - JComments 2.3.0 Integration (Free). For Joomla 1.7 and 2.5 only
Post by: flo31 on March 29, 2012, 15:37:37 PM
Did you read that  :P

You may set some params. Under Joomla, JComments → settings and the permissions tab.
Set the right permissions to your joomla user groups to allow them to use JComments functionnalities.

Anyway, don't put the tags everywhere, the comments are enabled by default on all products pages. This is ONLY in case you disabled a category and want to force enabling, or want to force disabling for a single product.

Title: Re: VirtueMart 2 - JComments 2.3.0 Integration (Free). For Joomla 1.7 and 2.5 only
Post by: corymp on April 02, 2012, 23:14:28 PM
Can you tell me what permissions to set? I enabled everything for the customer and vendor groups in jcomments but still no success. I checked my users joomla user groups and they are all in the correct groups. Not sure why its not working

Sent from my Galaxy Nexus
Title: Re: VirtueMart 2 - JComments 2.3.0 Integration (Free). For Joomla 1.7 and 2.5 only
Post by: flo31 on April 06, 2012, 05:37:23 AM
Hello,

The VM groups are not integrated, it works with Joomla user groups.

Questions regarding JComments have to be asked there http://www.joomlatune.com/forum/ .
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: freshqa on April 25, 2012, 19:13:23 PM
Anyone suceed with 2.0.6 ? Cant get it to work =(
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: Snake 60 on April 25, 2012, 21:54:02 PM
Works well on 2.0.6 but only on standart templates  :(
Can anybody explain how to force it work on other templates?
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: iibasarah on April 26, 2012, 04:53:36 AM
is this trick works on joomla 1.5.25?
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: freshqa on April 26, 2012, 17:03:28 PM
Doesnt work for me at default templates aswell, doesnt recognize {jcomments on} in virtuemart products.
Really need jcomments so i can pull latest ones to mainpage, any ideas what to do ? joomla 2.5.4 vm 2.0.6
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: flo31 on April 27, 2012, 19:25:47 PM
Hello,

Everything is said in the first topic (versions, steps) if you didn't manage to get it work it's because you did something wrong.

For the template thing, it should work with other templates if they take care of the new events triggered in views/productdetails/view.html.php and displayed in views/productdetails/tmpl/default.php.

Eventually, you can try to add :

<?php echo $this->product->event->afterDisplayContent?>
in components/com_virtuemart/views/productdetails/tmpl/default.php where you want to place the comments.

Regards,
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: Snake 60 on April 27, 2012, 23:02:07 PM
Thanks, it work.  :)
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: freshqa on April 28, 2012, 18:31:43 PM
Thanks for reply! When u said what to add it became obvious to me that all this time it had to work already. I did everything right before, the only thing my Virtuemart 2 - JComments Content Plugin was unpublished, so funny me -=)

Best hack, now i can get my latest reviews at the mainpage!
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: flo31 on May 02, 2012, 21:16:17 PM
Thanks for the feedback :)

If it doesn't recognize the tags it's only because the plugin is not installed or published (the tags are not needed, the comments are enabled by default).

I know it works if people take care of each line, each step.

I don't have enough time to help case by case, and also people can learn from their mistakes.
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: Snake 60 on May 03, 2012, 18:23:43 PM
To flo31 Can you make plugin for joomla 1.5.x not only for 1.7 or late?
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: flo31 on May 05, 2012, 08:59:33 AM
Hey, no sorry I have other things going on and Joomla 1.5 won't be anymore supported in a few months.
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: baroen on May 26, 2012, 10:31:47 AM
Why should I use jcomments instead of the standard review system? What are the benefits?
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: kerkezz on July 09, 2012, 15:15:14 PM
Quote from: flo31 on March 16, 2012, 12:55:56 PM
This tutorial will allow you to use JComments 2.3.0 ajax system for displaying and managing comments on the VirtueMart 2 product pages.

STEP 1
Download Virtuemart 2.0.3c or newer and install it, or simply update your actual version.

STEP 2 Go into Virtuemart->Configuration then Shop Tab and click on Enable Joomla plugin

STEP 3 Then go to the Shop Front tab.
On the right side under 'Shopper Review/Rating System ', disable the first 2 params :

Enable Review System for : 'Disabled'
Show Review : 'Don't show'

and save.

Note : If you already have Virtuemart reviews, you will be able to import them to JComments.


STEP 4 Download JComments Component 2.3.0 Stable on http://www.joomlatune.com/jcomments-downloads.html and install it.

STEP 5 We are now going to hack JComments in order to support VM1 and VM2 (it only supports VM1 at this moment). This will allow you to get the integration working, and the possiblity to import the reviews from VM2.

Replace in your Joomla folder :


- /components/com_jcomments/plugins/com_virtuemart.plugin.php

- administrator/components/com_jcomments/admin.jcomments.migration.php

with the corresponding files, given in the following zip : Jcomments Hack Zip (https://flo31.olympe-network.com/jcomments_hack.zip)

STEP 6 Download, and Install the Virtuemart 2 - JComments Content Plugin (https://flo31.olympe-network.com/plugin_vmjcomments1.0.zip). Then enable it in the Joomla extensions manager.

And you are done !

You may set some params. Under Joomla, JComments → settings and the permissions tab.
Set the right permissions to your joomla user groups to allow them to use JComments functionnalities.

Now JComments is handling all Virtuemart Comments / Reviews, so you can use the power of JComments to manage them.

STEP 7 (Option)
Import your Virtuemart reviews into JComments . Go in JComments->Import, Virtuemart 2 reviews and click on import.

You can also use JComments for other components like K2, Articles...and all JComments modules will work (latest, latest commented, most commented, top posters).
You just have to set the source : com_virtuemart in the modules params if you want to display virtuemart comments.

FAQ :


I want to exclude virtuemart categories to not display comments on his products : In the plugin Virtuemart 2 - JComments Content parameters you can multiselect (with ctrl+click) virtuemart categories to exclude (In Joomla extensions->plugins)

I have excluded the virtuemart category Computers under the plugin and want to enable comments only for the Macbook Product :
You can force enabling or disabling comments for a product. Go under Virtuemart->product and go on the product page. Go to the description tab and click at the bottom of the editor :

- Click on JComments OFF button to force disabling comments
- Click on JComments ON button to force enabling comment

The plugin Virtuemart 2 - JComments Content Plugin reads this on the product page, takes it into account, and removes the tags from the product description, so it's not displayed in the frontend.

I want to stop using JComments :
There is not export function at this moment. You can uninstall JComments, and the reviews will remain in the database. Then retrieve the STEP 2 and STEP 3.

Note : If you have added a {Jcomments} tag in some products, go into Joomla extensions -> plugins management, plugin Virtuemart 2 - JComments Content Plugin and select 'no' for the 'Activate Plugin' param.

The plugin will only continue to remove the tags from the product description, but won't display JComments.
You can uninstall it, since you have removed all {Jcomments} tags in all product descriptions, but the plugin can stay here and do the job quite well.

You can report bugs here and I will fix them.


Links are dead, can't open any page from your link! I'm working with VM 2.0.6 and latest Jcomments... can you help me? Will this work for me too?
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: mjtn88 on July 09, 2012, 23:10:20 PM
that's an awsome tutorial, but links are dead... please this is very urgent!!!  :'(  ... can you update them... i'll be so grateful!!!
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: Snake 60 on July 16, 2012, 08:06:06 AM
Here it:


[attachment cleanup by admin]
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: littlefish on September 17, 2012, 10:29:56 AM
Quote from: Snake 60 on July 16, 2012, 08:06:06 AM
Here it:

thanks Snake 60 for reposting!

n a big thank you to flo31 for the excellent hack! 
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: tobetter on October 27, 2012, 18:02:27 PM
I also encounter this problem, thank you
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: GomHang on February 17, 2013, 09:29:53 AM
Quote from: flo31 on March 16, 2012, 12:55:56 PM
This tutorial will allow you to use JComments 2.3.0 ajax system for displaying and managing comments on the VirtueMart 2 product pages.

STEP 1
Download Virtuemart 2.0.3c or newer and install it, or simply update your actual version.

STEP 2 Go into Virtuemart->Configuration then Shop Tab and click on Enable Joomla plugin

STEP 3 Then go to the Shop Front tab.
On the right side under 'Shopper Review/Rating System ', disable the first 2 params :

Enable Review System for : 'Disabled'
Show Review : 'Don't show'

and save.

Note : If you already have Virtuemart reviews, you will be able to import them to JComments.


STEP 4 Download JComments Component 2.3.0 Stable on http://www.joomlatune.com/jcomments-downloads.html and install it.

STEP 5 We are now going to hack JComments in order to support VM1 and VM2 (it only supports VM1 at this moment). This will allow you to get the integration working, and the possiblity to import the reviews from VM2.

Replace in your Joomla folder :


- /components/com_jcomments/plugins/com_virtuemart.plugin.php

- administrator/components/com_jcomments/admin.jcomments.migration.php

with the corresponding files, given in the following zip : Jcomments Hack Zip (https://flo31.olympe-network.com/jcomments_hack.zip)

STEP 6 Download, and Install the Virtuemart 2 - JComments Content Plugin (https://flo31.olympe-network.com/plugin_vmjcomments1.0.zip). Then enable it in the Joomla extensions manager.

And you are done !

You may set some params. Under Joomla, JComments → settings and the permissions tab.
Set the right permissions to your joomla user groups to allow them to use JComments functionnalities.

Now JComments is handling all Virtuemart Comments / Reviews, so you can use the power of JComments to manage them.

STEP 7 (Option)
Import your Virtuemart reviews into JComments . Go in JComments->Import, Virtuemart 2 reviews and click on import.

You can also use JComments for other components like K2, Articles...and all JComments modules will work (latest, latest commented, most commented, top posters).
You just have to set the source : com_virtuemart in the modules params if you want to display virtuemart comments.

FAQ :


I want to exclude virtuemart categories to not display comments on his products : In the plugin Virtuemart 2 - JComments Content parameters you can multiselect (with ctrl+click) virtuemart categories to exclude (In Joomla extensions->plugins)

I have excluded the virtuemart category Computers under the plugin and want to enable comments only for the Macbook Product :
You can force enabling or disabling comments for a product. Go under Virtuemart->product and go on the product page. Go to the description tab and click at the bottom of the editor :

- Click on JComments OFF button to force disabling comments
- Click on JComments ON button to force enabling comment

The plugin Virtuemart 2 - JComments Content Plugin reads this on the product page, takes it into account, and removes the tags from the product description, so it's not displayed in the frontend.

I want to stop using JComments :
There is not export function at this moment. You can uninstall JComments, and the reviews will remain in the database. Then retrieve the STEP 2 and STEP 3.

Note : If you have added a {Jcomments} tag in some products, go into Joomla extensions -> plugins management, plugin Virtuemart 2 - JComments Content Plugin and select 'no' for the 'Activate Plugin' param.

The plugin will only continue to remove the tags from the product description, but won't display JComments.
You can uninstall it, since you have removed all {Jcomments} tags in all product descriptions, but the plugin can stay here and do the job quite well.

You can report bugs here and I will fix them.

thanks very much :-*
Quote from: Snake 60 on July 16, 2012, 08:06:06 AM
Here it:
and you too, wish besthing for two you  :-*
@newbie: login to see link and download, if link die, pm my yahoo:trai_ngam_cat or gomhang68@gmail.com
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: olejenya on February 21, 2013, 09:14:56 AM
Hey. What conclusion can be linked to the rating of the user who left koment? That you could see his assessment item? Everywhere there is an option in the comments vote. And then its gone, but as I would like to bind to virtumartovsktoy) Help pliz implement.
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: mkt on March 22, 2013, 06:11:56 AM
Hello, i did all what was writen. But before i change Jcomments Hack Zip all comments was in admin panel but links not right. But after changes in "name of material" all information was lost. And comments was not display in virtuemart goods... Whats problem?


ps Excuse me for my English, im from Russia, and not good speak in English. 
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: Maxim Pishnyak on June 10, 2013, 20:08:09 PM
Quote from: Maxim Pishnyak on June 10, 2013, 19:10:30 PM
Really, this extension [FREE VirtueMart Products Reviews - Joomla Module (https://forum.virtuemart.net/index.php?topic=116176.0)] for Virtuemart is very perspective. The native reviews for shopping cart with this helpful module is much better thing that this, not so universal, JComments.

Support is very friendly. A little bug was corrected by Sneha Thakker successfully and fast - http://www.thakkertech.com/forum/4-joomla-extensions-bug-report/1623-virtuemart-reviews.html
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: gerstavros on November 22, 2013, 17:04:41 PM
It doesn't work
"Warning: require(/home/gerstavr/public_html/Joomla2/components/com_jcomments/jcomments.config.php): failed to open stream: No such file or directory in /home/gerstavr/public_html/Joomla2/plugins/content/vmjcomments/helpers/plugin.php on line 16"
Is there any workarround ?
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: olejenya on December 14, 2013, 19:04:43 PM
Hi, updated to the latest version of the component integration com_jcomments_v3.0.0, and sltel site. White screen. The reason is just integration plugin for VirtueMart plugin_vmjcomments1.0, unplug it when the page is loaded. Who is correct plugin files and those who pour that it worked? Pts should not want to roll back, as used in k2
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: FidelGonzales on January 01, 2014, 22:19:02 PM
Is there anyone who knows the the specific code modifications for the latest versions of Virtuemart and JComments?
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: mario052 on January 05, 2014, 22:46:29 PM
Всем привет! Нужна помощь в настройке  VirtueMart2,026a и JComments 3,0!   не могу настроить  сделать вывод комментариев!! :'( :'( :'(
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: Studio 42 on March 14, 2016, 09:20:10 AM
Hi all,
You can try my fork here : https://github.com/studio42-fork/jcomments if you need it, it work with Joomla 3.4.8 and VM 3.0.12.
I had to integrate it for a customer.
Some trigger are missing, but this are only needed when you delete a product, so the comment are removed. But you can manually remove the comments.
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: AzMandius on May 22, 2019, 14:24:17 PM
Displays comments to all VirtueMart products or to all items and components

Hi,
I have successfully embedded JComments 2.3.0 to VirtueMart 2.0.8 products on Joomla! 2.5.19

Now I would need to crate a menu item that would display all comments to all VirtueMart products, or at least all comments posted on the site, regardless of item or component.

So far there is only a possibility to create a menu item that would display all comments published for this only item.

Thanks!
Title: Re: VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5
Post by: Milbo on May 22, 2019, 21:23:49 PM
You should really update your store.