I wanna add JComment to appear not only in article pages, but on Virtuemart product detail too. How can i do that?
I have another extension named "addtoany" that shows social media buttons. I want to do the same thing to this extension too.
First things first... As per official Stack Exchange Help, you should never ask two different things in one Question, even if they appear to be closely related. One question should be for one inquiry only.
Regarding your inquiry about JComments integration into Virtuemart, you haven't mentioned their versions you are using, and that is crucially important for answering it correctly. So, I am providing a very simple but long-sought-after solution for VM 3.0.12+ and Joomla 3.4.8+, which I have successfully implemented yesterday at one of my client's shops.
Go to this VM Forum post
'VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5', jump to the last (third) page, and in the last post from user 'Studio 42' posted on 2016-03-14 you will find the link to his 'JComments fork on GitHub'.
Simply download this extension (I call it
com_jcomments_3.0.5_fork_j25j3x.zip) and install it.
This guy from http://st42.fr rewrote few things in latest official
com_jcomments_v3.0.5.zip, and added new Content Plugin
plg_vmjcomments 'Virtuemart 3 - JComments Content Plugin' which handles attaching jcomments layout to the long product description in VM Product Detail page.
I have tested it and it is working flawlessly on two sites and in two different templates.
After this installation you should configure few things right away, in order to enable this whole enchilada: Go to VM Configuration|Configuration section and:
For latest VM and Joomla that's all you need to do. Don't follow other older posts in this topic, unless you are using old VM 2 and Joomla 2.5, which you are not... right?!? :-)
You can safely install any other module/plugin from Official JComments Download section, and use them as you wish.
On a side note, we all should be aware that JComments is a 'dead fish'! The guy stopped updating it almost two years ago, and it is yet another great extension which didn't survive in this Open Source Warfare...
Regarding your second inquiry about "addtoany" social media buttons, I have never used it even though I know there is a Joomla plugin for it. I guess VM implementation should go along adding calls to plugin into VM product detail layout overrides in your template, but don't hold me to it.