Social Media in Magento

Integrating Twitter with Magento

Twitter ( is a micro-blogging service, which allows its users to send short messages to their followers, answering the question "what are you doing now?"

Social Media in Magento

After registering a Twitter account, you can begin to follow other Twitter users. When they update their status, you will see it in your timeline of what people you follow say.

Social Media in Magento

When you sign up for a Twitter account, it is usually best to sign up as the name of your store—for example, "Cheesy Cheese Store" rather than "RichardCarter", simply because your customers are more likely to search for the name of the store rather than your own name.

Tweeting: Ideas for your store's tweets

If you look at other businesses on Twitter, you'll see that there are a number of ways to promote your store on Twitter without losing followers by being too "spammy".

  • Some companies give voucher codes to Twitter followers—a good way to entice new customers
  • Others use Twitter to host competitions for free items—a good way to reward existing customers
  • You can also release products to your Twitter followers before releasing them to other customers

Displaying your Twitter updates on your Magento store

Twitter can be a powerful tool for your store on its own, but you can integrate Twitter with your Magento store to drive existing customers to your Twitter account, which can help to generate repeat customers.

There are a few ways Twitter can be used with Magento, the most versatile of which is the LazzyMonks Twitter module.

Installing the LazzyMonks Twitter module

To install the LazzyMonks module, visit its page on the Magento Commerce web site (, and retrieve the extension key, after agreeing to the terms and conditions. Log in to your Magento store's administration panel, and open the Magento Connect Manager in the Magento Connect option under the System tab.

Social Media in Magento

Once this has loaded, paste the extension key in to the text box next to the Paste extension key to install label, as shown in the following screenshot:

Social Media in Magento

This will install the module for you. Return to your Magento store's administration panel, and you will see a Twitter option in the navigation. The View Tweets option allows you to view updates made to your Twitter account. The Post Update option allows you to update Twitter from your store's administration panel.

Social Media in Magento

Firstly, you will need to configure the module's settings, which can be found under the Twitter option of the Configuration section of your store's administration panel, under the System tab.

Social Media in Magento

The Twitter Login options are of particular interest. Here you will need to enter your Twitter account's username and password.

Once this has been saved, you can post a status update to your Twitter account through Magento's administration panel:

Social Media in Magento

This then appears on your Twitter account:

Social Media in Magento

Your tweets will also be displayed on your store, as a block beneath other content and can be styled with CSS in your Magento theme by addressing div.twitter.

Other ways to integrate Twitter with Magento

The other way to integrate your Twitter feed with Magento is by embedding Twitter's widgets into your site. To use these, log in to your Twitter account, and go to You can then use the HTML provided within the Magento templates to insert your Twitter updates into your store.

Adding your Twitter feed through Magento's CMS

Alternatively, you can insert your Twitter account's updates into any page managed through Magento's Content Management System. In Magento's administration panel, select CMS | Manage Pages, and select the page that you want your Twitter stream to appear in. Within your page, simply paste the code that Twitter produces when you select the type of Twitter "badge", which you want to display on your store.

Consider creating a new block for your Twitter statuses, so that it can be removed from pages where it is likely to be distracting (for example, the checkout page).

Integrating Get Satisfaction with Magento

Get Satisfaction ( is an "unofficial" customer support service. There are other similar customer satisfaction services such as eKomi (, which can be integrated with Magento in a similar fashion.

Social Media in Magento

Though there are currently no modules for Magento, you may want to consider signing up for a Get Satisfaction account and adding a link to your store's footer area, asking for customer feedback. Free accounts are available, although the number of visits per month your account can receive is limited.

By resolving problems and answering questions in an open way, you can actively enhance your store's reputation online, so expect what seem to be silly or pointless questions (they could help you to improve your store's design in the future) and remain polite and friendly!

To add the link, sign up for a company account on Get Satisfaction. Open your store's administration panel, and select the Static blocks option under CMS:

Social Media in Magento

You can now select the Footer links static block from the list:

Social Media in Magento

The address of the Cheesy Cheese Store's Get Satisfaction account is, so we need to add a link to this in the content.

By default, the content already in the Footer Links block is similar to:

<li><a href="{{store url=""}}about">About Us</a></li>
<li class="last"><a href="{{store url=""}}
customer-service">Customer Service</a></li>

We'll change the Customer service link currently there to Customer feedback, and link to our store's Get Satisfaction account.

<a href="{{store url=""}}about-magento-demo-store">About Us</a>
<li class="last">
<a href=""
title="Customer feedback">Customer feedback</a>

Once you have saved these changes, the new link will appear in your store's footer.

Integrating social bookmarking with Magento

Social bookmarking services allow users to store and organize links to their favorite web sites online. By integrating social bookmarking with your Magento store, you allow customers to interact with your business outside the confines of your store, ensuring that your customers are still considering your products elsewhere.

Social bookmarking tools

There are a huge number of these services on the web, but some bookmarking tools are more popular than others. The following are a few examples:

Your store's web pages could become very crowded if you listed every service available. Luckily, there are services that allow your visitors to choose which service to save their link to, for example:

  • AddThis
  • Socializer

These allow much easier integration with social bookmarking tools, as they aggregate at least the most popular services into one.


Ekstreme's Socializer ( allows users to bookmark a huge range of bookmarking services. Creating a link to Socializer is simple. You pass an address (URL) and the title of the page to be bookmarked. A link to Socializer looks like this:

title='Bookmark this page'>Bookmark this page>

Your visitor is then presented with a page similar to the following screenshot, with options to save the page in various bookmarking services:


AddThis ( is the #1 bookmarking and sharing service, allowing visitors to your store to bookmark your Magento store with over 50 different online bookmarking services.

Social Media in Magento

AddThis also allows its users to save the page to their preferred bookmarking service. It also has options for the user to print the page and email a friend too.

Social Media in Magento

You can use AddThis without registering, but registering allows you to track which pages are being shared and how.

Using AddThis in Magento

As AddThis offers more options to our visitors, we'll use it in the Cheesy Cheese Store's new theme. The first step to using AddThis in Magento is to select which button you would like to display. Go to, and make a selection. For Cheesy Cheese Store, we'll use the option that we saw previously. The code that AddThis generates looks like this:

<!-- AddThis Button BEGIN -->
<script type="text/javascript">
var addthis_pub="4a0c2aff012daef5";
<a href=""
onmouseover="return addthis_open(this, '', '[URL]',
'[TITLE]')"onmouseout="addthis_close()" onclick="return
<img src=""
width="125" height="16" alt="Bookmark and Share"
<script type="text/javascript"
<!-- AddThis Button END -->

When you sign up to AddThis, you'll be given your own publisher identity number, which you'll need to use to replace the publisher identity number shown in the previous code snippet.

We can add this to the addto.phtml template file in our Magento theme, which can be found in the app/design/frontend/default/cheese2/template/catalog/product/view directory.

<?php $_product = $this->getProduct() ?>
<ul class="add-to-box">
<?php if ($this->helper('wishlist')->isAllow()) : ?>
<a href="<?php echo $this->helper
('wishlist')->getAddUrl($_product) ?>"><?php echo $this
->__('Add to Wishlist') ?></a>
<?php endif; ?>
<?php if($_compareUrl=$this->helper('catalog/product_compare')
->getAddUrl($_product) ): ?>
<span class="pipe">|</span> <a href="<?php echo $_compareUrl
?>"><?php echo $this->__('Add to Compare') ?></a>
<?php endif; ?>

We can add our link just above the closing </ul>:

<!-- AddThis Button BEGIN -->
<li><script type="text/javascript">var
<a href="" onmouseover="return addthis_open
(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()">
<img src="" width="125" height="16"
alt="Bookmark and Share" style="border:0"/></a></li>
<script type="text/javascript" src=""></script>
<!-- AddThis Button END -->

This will mean that the AddThis button will be displayed alongside the links to compare products and to add a product to your Magento store. We can also remove the last <script> element from the code highlighted above, by using a Magento layout file to add it to the <head> of category pages.

To change the layout of our theme, we need to edit the catalog.xml file in the app/design/frontend/default/cheese2/layout directory. Locate the section (usually near the top) that looks like this:

<reference name="">
<block type="catalog/navigation" name="catalog.topnav"

We can insert a snippet of XML in to the relevant layout file so that Magento only inserts the JavaScript files required by AddThis when they are needed.

<reference name="">
<block type="catalog/navigation" name="catalog.topnav"
<reference name="head">
<action method="addJs">

The AddThis button is now visible in our theme, allowing our store's customers to share our products with their friends and family!

Social Media in Magento


We have explored a few ideas on promoting and improving your Magento store with the use of social media, including:

  • Using social bookmarks
  • Using Twitter, the micro-blogging service
  • Integrating customer feedback services like Get Satisfaction with Magento

There's still much we can do to improve our Magento theme, like creating print stylesheets. The best way to discover what works for your store and what doesn't is to experiment!

You've been reading an excerpt of:

Magento 1.3 Theme Design

Explore Title
comments powered by Disqus