Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I am trying to get facebook like buttons to play nice with my SEO url's. Every time I attempt to like a product it tries to link to the non SEO friendly url of the product page and product image.

 

I am using 2.2 rc2a and this code:

 

<!--Social Network-->
<tr>
 <td>
 <table cellpadding=0 cellspacing=0 border=0 style="margin-top:20px;"><tbody><tr>
 <td align="left" valign="top">
   <!--FACEBOOK-->
   <iframe src="https://www.facebook.com/plugins/like.php?href=
   <?php echo "http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}"; ?>"
   scrolling="no" frameborder="0" style="border:none;width:400px;height:80px"></iframe>
 </td>
 <td align="right" valign="top">
   <!--TWITTER-->
   <a href="https://twitter.com/share" class="twitter-share-button" data-lang="it" data-size="large" data-count="none">Tweet</a>
   <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>
 </td>
 </tr></tbody></table>
 </td>
</tr>

 

How can I get this to work properly with my SEO url's. Help please :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...