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="<?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>