Honestly I never worked with the want button and I don't know what its code looks like so if you can provide a link to the page of the button that would be great but for now I'll assume it's a small piece of HTML code you need to embed.
first thing we'll need to do is make a template (PHTML file) in the active template directory where we can put the code in. So let's create this file in the directory app/design/frontend/[package]/[template]/template/catalog/product/
. If the catalog/product
directory isn't create yet please do so.
Now create a file in this directory called fbwantown.phtml
or whatever you want to call it and add the embed code for these buttons.
After this we'll add the template to the product page by adding it in the layout XML. Go to your templates layout file and open/create the local.xml
adding the following
<?xml version="1.0"?>
<layout version="0.1.0">
[...]
<catalog_product_view translate="label">
<reference name="product.info">
<block type="core/template" name="fbwantown" template="catalog/product/fbwantown.phtml"/>
</reference>
</catalog_product_view>
[...]
</layout>
Here we're adding a block to the product page with as block class the default Mage_Core_Block_Template
and as template our newly created phtml file.
All we need to do now is go into the file catalog/product/view.phtml
(if it doesn't exist in your template directory then copy it from the base/default
template) and add the following piece of PHP where we want to display the button
<?php echo $this->getChildHtml('fbwantown');?>