Jump to content

problem with layered navigation, product sort and pagination


waiking

Recommended Posts

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
 
but fb, twitter went missing after ("Loading ....") using soft-by, layered navigation and pagination
 
please advice,
 
wai king
Edited by waiking (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...