I installed a store front template with virtuemart shop. I really like the GK social plugin which is integrated in the template.
The social buttons work well in articles but there were no buttons in virtuemart products. So I found the code for social buttons in com_content/article/default.php as follows:
- Code: Select all
<gavern:social><div id="gkSocialAPI"></gavern:social>
<div><gavern:social><g:plusone GK_GOOGLE_PLUS_SETTINGS callback="<?php echo $cur_url; ?>"></g:plusone></gavern:social></div>
<div><gavern:social><g:plus action="share" GK_GOOGLE_PLUS_SHARE_SETTINGS href="<?php echo $cur_url; ?>"></g:plus></gavern:social></div>
<div><gavern:social><fb:like href="<?php echo $cur_url; ?>" GK_FB_LIKE_SETTINGS></fb:like></gavern:social></div>
<div><gavern:social><a href="http://twitter.com/share" class="twitter-share-button" data-text="<?php echo $this->item->title; ?>" data-url="<?php $cur_url; ?>" gk_tweet_btn_settings>Tweet</a></gavern:social></div>
<div><gavern:social><a href="http://pinterest.com/pin/create/button/?url=<?php echo $cur_url; ?>&media=<?php echo $pin_image; ?>&description=<?php echo str_replace(" ", "%20", $this->item->title); ?>" class="pin-it-button" count-layout="GK_PINTEREST_SETTINGS"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="<?php echo JText::_('TPL_GK_LANG_PINIT_TITLE'); ?>" /></a></gavern:social></div>
<gavern:social></div></gavern:social>
I copy pasted this code to: mytemplate/com_virtuemart/productdetails/default.php somewere below images but only the facebook buttons is shown. In articles I can see all other buttons (Google+, PInit, etc.)
It seems that I am missing something ...
Please help