Saturday, January 18, 2014

Magento: How to place Facebook Like and Twitter Buttons in the products view page

A)FaceBook Button
<a href=”http://www.facebook.com/sharer.php?u=getProductUrl() ?>&t=Check+this+out” target=”_blank” title=”Share on Facebook”><img src=”getSkinUrl().”images/icon-f.png” ?>” alt=”Share on Facebook”>
B)Twitter Button
<a title=”Send this page to Twitter!” href=”http://twitter.com/home?status=Check out the <?php echo $this->htmlEscape($_product->getName()) ?> at <?php echo $_product->getProductUrl()  ?> @foodoAU” target=”_blank”><img src=”<?php echo $this->getSkinUrl().”images/icon-t.png” ?>” alt=”Follow foodoAU on Twitter”/></a>

No comments:

Post a Comment