How to add facebook (fb) like button in the product view page magento???

magento.jpeg

As we all know there are many Magento extensions for social sharing services

I have shared this article for add just single Facebook like button in product view page:::

Read the Following...

  • Go to app/design/frontend/default/template/catalog/product/ and open view.phtml file.
  • Add the following code snippet where you want to show Facebook LIKE button on view.phtml page.
  • 1. <!--Facebook like button code starts here  -->
    2.
    3. <!--?php $CurrentUrl = urlencode(Mage::helper('core/url')--->getCurrentUrl()); ?>
    4.
    5. <iframe src="http://facebook.com/plugins/like.php?href=<?php echo $CurrentUrl; ?>&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=21" schrollowing="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px" allowtransparency="true"> </iframe>
    6.
    7. <!--Facebook like button code ends here -->
  • Now open your product detail page, you should see Facebook Like button.

hurry!!

For Digital Marketing Write For Us guest post you can send us the blogs at developergang1@gmail.com