B-219 Sec-55 Noida, India
+918010221733

Add Facebook Like on a product page in Magento

Having a Facebook button on your product is an easy way to take advantage of the power of Facebook. If a user clicks on it, he shares your page with all his friends . To add this button, add the following code anywhere in this template file: app/design/frontend/theme/theme/template/catalog/product/view.phtml <a name=”fb_share” type=”button”></a> <script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share” type=”text/javascript”></script> <?php elseif($_share == ‘facebook_like’): ?> <script src=”http://connect.facebook.net/en_US/all.js#xfbml=1″></script><fb:like show_faces=”true” width=”450″></fb:like> <?php endif; ?>
(Visited 59 times, 1 visits today)

Leave a reply

You must be logged in to post a comment.