Contact
Site: US UK AU |
Nexcess Blog

Posts by: Tag Archive for getProductUrl()

Add Facebook Like Button to Magento Product View

August 14, 2011 19 Comments

Add Facebook Like Button to Magento Product View
It seems that every site you visit has a link to share this article, page or product with your Facebook friends. This tutorial will make it easy for your customers to share your products with their Facebook friends. For this article I will use the Magento default theme as reference, you may need to adjust your code slightly if you use a custom theme.

We will simply add the Facebook like button to your product view page. With your favorite text editor, I like Notepad++ , open /app/design/frontend/base/default/template/catalog/product/view.phtml and around line 50 find the following code:

<br />
<h1><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h1><br />

Read more

Posted in: Magento

Tags: