waiking Posted September 19, 2013 Share Posted September 19, 2013 (edited) Hi i'm facing some problem with implement the fb, twitter and pinterest into product-list.tpl in header.tpl <div id="fb-root"></div><script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=355386587913293"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script> <script> !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src="//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js,fjs); } }(document,"script","twitter-wjs"); </script> in product-list.tpl <div> <div class="fb-like" data-href="{$link->getProductLink($product.id_product, $product.link_rewrite)}" data-send="false" data-layout="button_count" data-width="60"></div> <a href="https://twitter.com/share" class="twitter-share-button" data-lang="en" data-url="{$link->getProductLink($product.id_product, $product.link_rewrite)}" data-text="{$product.name}" data-count="none">Tweet</a> <a href="http://pinterest.com/pin/create/button/?url={$link->getProductLink($product.id_product, $product.link_rewrite)}&media={$link->getImageLink($product.link_rewrite, $product.id_image, 'thickbox_leointe')}&description={$product.name|escape:'htmlall':'UTF-8'}" data-pin-do="buttonPin" data-pin-config="none" target="_blank"><img src="//assets.pinterest.com/images/pidgets/pin_it_button.png" /></a></div> everything work fine when clicked category link http://www.passionwoody.com/48-magnets but fb, twitter went missing after ("Loading ....") using soft-by, layered navigation and pagination http://www.passionwoody.com/48-magnets#/page-2 please advice, wai king Edited October 2, 2013 by waiking (see edit history) Link to comment Share on other sites More sharing options...
waiking Posted October 2, 2013 Author Share Posted October 2, 2013 Hi, anyone? i tried but i'm not success.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now