Saturday, May 21, 2011

Add facebook & twitter share function into product detail page

(1) goto http://www.addthis.com/ to get the script code. You can customize your share links for facebook and twitter only.

(2) In skins\basic(or your skin template)\customer\blocks\product_templates\default_template.tpl
around line 88 add the generated script code from step 1.

See the example picture

3 comments:

  1. Thank you! I was looking how to put this funnction there for long..!

    ReplyDelete
  2. Thank you for sharing!

    Just one question, my URL is now with a final "#.UTbdXjA2Zbo":

    mysite.com/myproduct.html#.UTbdXjA2Zbo

    Why?

    ReplyDelete
  3. If you don't want / don't need a tracking like this one: "#.UTbdXjA2Zbo" at the end of URL, just unchecked this box at the bottom of the Addthis "get the script code" page:

    Track when users share by copying your URL

    ReplyDelete