Add Facebook Like Button to Magento Products

Below is the code to add the Facebook ‘Like’ Button to your Magento product pages. The code will pick up the current page URL automatically, so your users can individually like each product as opposed to the entire website.

<iframe src=”<?php echo $_product->getProductUrl() ?>&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80″ scrolling=”no” frameborder=”0″ style=”border:none; overflow:hidden; width:450px; height:80px;” allowTransparency=”true”></iframe>

Copy the code and place inside the view.phtml file in your templates folder “app/design/frontend/default/YOUR TEMPLATE/template/catalog/product”

Tags : , , ,

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

One Comment

Leave Comment