GK social buttons in virtuemart products

GK User
Fri Jul 25, 2014 6:50 pm
Hello,

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; ?>&amp;media=<?php echo $pin_image; ?>&amp;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
User avatar
Senior Boarder

GK User
Mon Jul 28, 2014 10:29 am
Our social API buttons are designed to work only with Joomla article. As you can see the code is parsed by template because it contains some gavern tags. What is more the $cur_url variable is generated in article view which now is not available in VirtueMart product page.
User avatar
Platinum Boarder

GK User
Mon Jul 28, 2014 3:49 pm
:(

I really liked this social buttons; but seems that I have to find a third party plugin for virtuemart.

Thank you.
User avatar
Senior Boarder

GK User
Tue Jul 29, 2014 2:03 pm
Exactly, this Social API area is working only with default Joomla content, even K2 have own social API buttons.
User avatar
Platinum Boarder


cron