Adding Facebook Like to your WP e-Commerce Store

upcycleexchange asked on the Get Shopped Support Forum if Facebook’s popular ‘Like’ functionality could be added to the Single Product template within WP e-Commerce.

A few minutes later here’s my solution for your store, I’ll be passing this onto Instinct for possible inclusion in future releases.

<?php $thisPage = get_permalink(); $thisPage = str_replace( ':','%253A',$thisPage ); $thisPage = str_replace( '/','%252F',$thisPage ); ?>
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo $thisPage; ?>&layout=standard&show_faces=false&width=450&action=like&font&colorscheme=light&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>

Leave a Comment

Before you comment - Do you have a support request? If so, this is not the right place to post it. Please submit support requests for Premium Plugins on the Support page and in the community Support Forums for free Plugins.

Your email address will not be published. Required fields are marked *