Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Facebook Like

ktwbc edited this page Oct 1, 2012 · 2 revisions

Facebook Like

###Note: This information only applies to 2.1 and below. Web Store 2.5 has sharing functionality built-in.

Adding a Facebook Like button is simple with WebStore 2.1. To place in your button, edit the file product_detail.tpl.php and place in the following code where you want the button to appear (such as the blank line between the lblDescription->Render() and arrAutoAddProducts commands)

<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="" send="true" width="450" show_faces="true" font=""></fb:like>

This will place the Like button showing faces. You can modify Facebook options within the string or come up with your own by going to http://developers.facebook.com/docs/reference/plugins/like/ on Step 1. (Note, leave URL to Like blank so it will use the current page.)

Clone this wiki locally