Monday, June 28, 2010

Add Facebook Like Button to All Products

//Add this to app/design/frontend/default/default/template/catalog/product/view.phtml
<iframe src="http://www.facebook.com/plugins/like.php?href="<?php echo $this->helper('core/url')->getCurrentUrl();>"&layout=standard&show_faces=true&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:px"></iframe>

Source:http://snippi.net/magento-add-facebook-link-button-all-products

2 comments:

  1. " //Add this to app/design/frontend/default/default/template/catalog/product/view.html "

    what a vojooo code you post (view.html)...!!! ?? i think it should be "view.phtml". :D

    ReplyDelete
  2. oh, yeah, Thanks Harisur. I'll correct this fault.

    ReplyDelete