Google Rich Snippets

Modules, Add-ons and custom code that's more than just a quick hack or Mod.
Post Reply
Painstik
Posts: 122
Joined: Sun Jul 19, 2009 1:19 pm
Location: Croatia

Google Rich Snippets

Post by Painstik »

This is simple modification for google to index your product reviews as Rich snippets. You can see it here: http://googlewebmastercentral.blogspot. ... ppets.html

All you have to do is:

Open: templates/master/Snippets/ProductReviewItem.html

Replace all the code with this:

Code: Select all

	<li class="hreview">
		<h4 class="ReviewTitle">
			<span class="item">
     			<span class="fn">%%GLOBAL_ReviewTitle%%</span>
   			</span> &ndash; Rating <span class="rating">%%GLOBAL_ReviewRating%%</span>
				<img width="64" height="12" src="%%GLOBAL_TPL_PATH%%/images/IcoRating%%GLOBAL_ReviewRating%%.gif" alt="" /> 
		</h4>
        
		<p class="Meta">
			%%LNG_PostedBy%% <span class="reviewer">%%GLOBAL_ReviewName%%</span> &ndash; <span class="dtreviewed">%%GLOBAL_ReviewDate%%</span>
		</p>
		<p><span class="summary">%%GLOBAL_ReviewText%%</span></p>
		<hr />
	</li>

Also you will have to sign up this form for using rich snippets: http://www.google.com/support/webmaster ... s_feedback

You can test how your rich snippets will look a like for your product pages here: http://www.google.com/webmasters/tools/richsnippets
Need custom coding for Interspire Shopping Cart? Contact me
mozack
Posts: 27
Joined: Tue Mar 30, 2010 2:32 pm

Re: Google Rich Snippets

Post by mozack »

Hi,

And is possible to do it with product info? With the product image link, brand, and votes? instead just the comments to products?

Thanks
Painstik
Posts: 122
Joined: Sun Jul 19, 2009 1:19 pm
Location: Croatia

Re: Google Rich Snippets

Post by Painstik »

everything is possible :)
Need custom coding for Interspire Shopping Cart? Contact me
Tony Barnes
Posts: 744
Joined: Thu Jun 18, 2009 8:59 am

Re: Google Rich Snippets

Post by Tony Barnes »

Thanks for this - it's little tweaks like this that can grab a surprising amount of attention in search results
netjet
Posts: 74
Joined: Tue Nov 03, 2009 12:03 pm

Re: Google Rich Snippets

Post by netjet »

Painstik wrote:everything is possible :)
Painstik,

Could you post the code for using this with product description or product info please?

Thanks
Post Reply