The +1 button is shorthand for “this is pretty cool” or “you should check this out.”
Click +1 to publicly give something your stamp of approval. Your +1’s can help friends, contacts, and others on the web find the best stuff when they search.
So, I thought why not give it a go. At the moment it’s available only on .com version of Google, which I never use, but I expect it to be rolled out to all google sites soon. So let’s get ready for that.
There appears to be two ways in which a user can +1 a site;
1. Via the google.com search interface
You can see the +1 button. When clicked it turns blue.
2. Via your own site. To enable this we need to add some code to osCommerce. The code can be found at http://www.google.com/webmasters/+1/button/index.html
Simply decide which button you want to show, and copy/paste the code! What could be simpler?
Step 1. Open up /includes/template_top.php and add this line of code just before the </head>
Step 2. Open up whichever file you want to add the +1 to. In my case, I chose to put it only on the product pages, hence product_info.php
Notice the extra line of code at line 76? That’s it! Now, the +1 button is active and ready to go.
If you are on an older version of osCommerce you would be changing /includes/header.php rather than includes/template_top.php and placing the +1 button in a table somewhere in product_info – the basis of the change is exactly the same whether you use 2.3.1 or 2.2.