Jump to content

Facebook Share button issue


Zeryk

Recommended Posts

Facebook and Google + share buttons in product details ae not working properly. When I click on it it sends the link on all products from front page    ( Recomended products )   instead just that particular product.                    

Pinterest and Twitter work fine.

Anybody idea why?

Link to comment
Share on other sites

  • 3 months later...

Same here, under PS 1.6.0.11

 

The default share button only shares the logo from my store, not the image from product.

I have built some code for sharing buttons a while ago, when I was under PS 1.4 I guess:

<table>
<tbody>
<tr>
<td style="padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px">
<a href="http://pinterest.com/pin/create/button/?url={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}&media={$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}" class="pin-it-button" count-layout="horizontal">Pin It</a>
<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>
</td>
<td style="padding-top:3px;padding-left:15px">
<iframe src="http://www.facebook.com/plugins/like.php?href=http://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}&send=false&layout=button_count&width=450&show_faces=false&font=arial&colorscheme=light&action=like&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>		
</td>
<td style="padding-right: 0px">
<p style="margin-bottom: 0px; width: 90px"> 
<a href="http://twitter.com/share" class="twitter-share-button" data-text="{$product->name}" data-count="horizontal" data-via="TrashMashers">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></p> 
</td>
<td style="padding-top: 0px;padding-left: 0px;padding-right: 0px;padding-bottom: 0px">
<g:plusone{if $ogoogleplusone_size != 2} size="{if $ogoogleplusone_size == 1}small{/if}{if $ogoogleplusone_size == 3}medium{/if}{if $ogoogleplusone_size == 4}tall{/if}"{/if}{if $ogoogleplusone_inc_count==0} count="true"{/if}{if !empty($ogoogleplusone_jsCallBack)} callback="{$ogoogleplusone_jsCallBack}"{/if}{if !empty($ogoogleplusone_urlto)} href="{$ogoogleplusone_urlto}"{/if}></g:plusone>
</td>
</tr>
</tbody>
</table>

The google+ needs a module installed to work, named "oGooglePlusOne v1.0 - by odience.net - Amir H. MORADI"

All works fine, but I need to add a working share button too.

 

Someone could help me create a Share button, like the "Like" one I created?

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...