Page 1 of 10

@tik Google Rich Snippets 2.0

Posted: Fri May 18, 2012 7:24 am
by OC2PS
Rich Snippets are a way to provide Google detailed product information in a structured way so that in search results it can display rich snippets (for example, price, availability, and review ratings)

Sample: Image

Rich snippets help you to:
  • Attract potential buyers while they are searching for items to buy on Google.
  • Submit your product listings for free.
  • Control your product information. You can maintain the accuracy and freshness of your product information, so your customers find the relevant, current items they're looking for.
Overall, rich snippets help us all move towards a semantic web.

One issue with OpenCart's default aggregate rating is that it truncates the fraction instead of rounding it off. So if your aggregate rating is 4.9 (i.e. anything less than perfect 5 but more than 4), then OpenCart shows rating as 4 and 4 stars. This is not good or fair as your customers might think that average rating is lower than it is. But it's even worse if you are using Rich Snippets because then this lower than real rating shows on Google results page.

So, an additional task that this extension performs from v 1.8 onwards is that it fixes the ratings. With this extension your shop shows stars based on rounded off average rating, and Google is provided accurate average rating, which seems more realistic to Google and will help your Rich Snippet show up more quickly in results, and not be snippet-spam flagged.

Because this is a vQmod, no core files are touched, and the changes should carry over to the next version.

Extension page: http://www.opencart.com/index.php?route ... on_id=6485

update 29 Mar 2013: 1.9.7 released

Requirements
  1. You need Opencart 1.5.5.1 or Opencart 1.5.4.1. Opencart is available at http://www.opencart.com/index.php?route ... d/download
  2. You must have vQmod (tested on 2.3.2) preinstalled. vQmod is available at http://code.google.com/p/vqmod/downloads/list
  3. This extension is made for the Default theme. Hence you should have the default theme as the active theme for this to work.
    If your theme is *VERY* similar to the Default theme, this extension MIGHT work out-of-the-box for you. If it doesn't, you can easily adapt it for other themes. If you don't know how, and need me to do paid customization, please PM me.
Installation
  1. Download the latest version of the extension compatible with your version of Opencart from http://www.opencart.com/index.php?route ... on_id=6485
  2. Unzip using a program such as WinZip, WinRar or Windows's inbuilt compressor
    (In Windows, right click on the downloaded zip file, and select Extract All)
  3. Use an FTP program such as FileZilla to upload all contents of the uploads folder to your shop's root.
Upgrading from v 1.0
If you've been living under a rock and still use v 1.0 of the extension, then to update:
  1. Perform all the steps as described under installation.
  2. On your server, delete the file /vqmod/xml/z-google-rich-snippets.xml
Is it working?
After installing, you can check that it;s working by providing a product page URL at http://www.google.com/webmasters/tools/richsnippets

When checking your product page at the above tool, remember:
  1. You will see stars only if the product page you are testing has reviews.
  2. Scroll down and see the whole page. The relevant stuff is under the headings "Google search preview" and "Extracted rich snippet data from the page"
  3. Under the heading "Extracted Author/Publisher for this page", you will see "Page does not contain authorship markup. Learn more." Do not panic! This is normal. Product and Review pages are not supposed to have authorship markup. Authorship markup is related more to blog posts and articles and requires integration with Google+ accounts...an entirely different beast from what we are trying to do at OpenCart
rich-snippets.JPG

rich-snippets.JPG (75.94 KiB) Viewed 44524 times

Why is my product photo not shown in the above tool?
Google has only implemented pictures for 2 items - recipes and authors. They havent implemented products yet. Hopefully the will soon. Though soon could mean a few months. Likely to be rolled out in US first. Add another few months for other countries.

That being said, if you read the output of the above tool carefully, you will note that Google can see the product picture - it correctly grabs the product image URL.

You can use http://linter.structured-data.org/ instead of the Google tool and you will see the image. But that's false hope because the image will not appear in Google Search results.

Works with GWT?
Yes, if you use Google Webmaster Tools, then your product pages shall appear under "structured data" there. BUT only after Google indexes your site after installing this extension. This could take a couple or hours or several weeks, depending on Google's schedule for your site.

So now I will see snippets for my product pages in Google?

The short answer is: Yes, but not immediately.

The (slightly) longer answer is: Yes, your product pages shall appear with the structured data, including review stars, price, availability, etc in Google's search results. However, there are a couple of caveats:

Google's search results usually take a while before they show snippets data. Google search does not know about the snippets data till the spider comes to index your site. For some sites that could be a few hours, for others, a few weeks.

Also, Google has slightly dispersed rollout with respect to geographical locations. In some countries you will see that more of your snippets appear in Google SERPs faster, while in others they may take an inordinately long time.

Finally, whether snippets would be shown at all depends entirely on Google Search algorithm and is beyond your (or our) control. All you can do is follow Google's instructions, provide data in the right format (which Google tool check shows) and hope for the best. That's why Google Tool page always has this disclaimer
Note that there is no guarantee that a Rich Snippet will be shown for this page on actual search results.
Theme-specific versions

For Shoppica 2: http://www.opencart.com/index.php?route ... on_id=7140

For Elegantcart: http://www.opencart.com/index.php?route ... on_id=6534

For OpenAmazon: http://www.opencart.com/index.php?route ... on_id=6536

Warning
If you have added any custom modules that show rating stars, this extension may cause the stars to stop showing. The fix is simple - in the affected module's template file, change

Code: Select all

stars-<?php echo $product['rating']; ?>.png
to

Code: Select all

stars-<?php echo round($product['rating']); ?>.png
Advertising
This mod adds my link to your site's footer (next to the Opencart link). It would be nice if you don't remove it. If you do remove it, please consider donating.

Re: @tik Google Rich Snippets

Posted: Mon May 21, 2012 2:22 pm
by krazy4sales
Is there a way to make this work for multi stores?

Thanks

Re: @tik Google Rich Snippets

Posted: Mon May 21, 2012 11:36 pm
by OC2PS
It should work already if all your stores use the Default theme.

I will work on a version for stores that use different themes. But don't hold your breath.

Re: @tik Google Rich Snippets v1.1

Posted: Tue May 22, 2012 6:03 am
by OC2PS
v1.1

Changelog
=========
- Multiple version tolerance added

Re: @tik Google Rich Snippets

Posted: Tue May 22, 2012 6:37 am
by ielektros
Hello.

Nem egeszen all ossze a kep, hogy mifan terem az a google authorship markup.

nekem azt dobja a Rich Snippets Testing Tool Beta, hogy "This page does not contain authorship or rich snippet markup."

Ha van ra kapacitasod akkor legyszives ejts par szot rola. Lehet, hogy csak mar komas vagyok, de nem latom at mi a szosz pedig probalok.

Thx,
iElektros

Re: @tik Google Rich Snippets

Posted: Tue May 22, 2012 6:41 am
by OC2PS
For the benefit of everyone else, I'll reply in English.

After installing this module, if you check on Google's Snippet Checker tool, then you don't see any author/publisher info.

This is true. Author/Publisher info is generally for other types of pages, not product pages. However, if there is enough demand for it, I can consider adding it (store name as publisher) to the next version.

Re: @tik Google Rich Snippets

Posted: Tue May 22, 2012 6:44 am
by ielektros
OC2PS wrote:For the benefit of everyone else, I'll reply in English.

After installing this module, if you check on Google's Snippet Checker tool, then you don't see any author/publisher info.

This is true. Author/Publisher info is generally for other types of pages, not product pages. However, if there is enough demand for it, I can consider adding it (store name as publisher) to the next version.

Ahh ok, thanks a lot for your fast response.
Than I don´t undersatand this: "After installation, check at Google's official testing tool: http://www.google.com/webmasters/tools/richsnippets"

So, than I wait and I will see some result in google. Right? :D

Re: @tik Google Rich Snippets

Posted: Tue May 22, 2012 6:55 am
by OC2PS
This is what you should see on Google Rich Snippet Checker if everything works fine:

Image

Re: @tik Google Rich Snippets

Posted: Tue May 22, 2012 7:06 am
by ielektros
Here is the problem. I see nothing after clicked Preview.

Image

Re: @tik Google Rich Snippets

Posted: Tue May 22, 2012 7:08 am
by OC2PS
Are you using Default theme? As mentioned in the Documentation on the Extension's page, this is written for the Default theme.

Re: @tik Google Rich Snippets

Posted: Tue May 22, 2012 7:14 am
by ielektros
OC2PS wrote:Are you using Default theme? As mentioned in the Documentation on the Extension's page, this is written for the Default theme.
Totally default.

Buuuuuuut. maybe my Opcrat / omtex make me crazy.
I read your documentations only I didn´t think about this.
http://www.opencart.com/index.php?route ... _id=100162

the basic theme is default. I don´t want to use other now. But I have this (omtex) mobile theme. And for the theme I changed in config.php this:

define('DIR_TEMPLATE', '/your_store_root_directory/your_site_folder/catalog/view/theme/');
to this:
define('DIR_DEFAULT_TEMPLATE', '/your_store_root_directory/your_site_folder/catalog/view/theme/');

install howto for omtex: http://omtex.opcrat.com/install/
I think here is the problem. brrrr

can you help for me with some idea to repair this "trouble"? If it is not so easy I can "donate" your works. But I haven´t so much time for this.

Re: @tik Google Rich Snippets

Posted: Tue May 22, 2012 7:24 am
by OC2PS
In that case, let's take this offline. I'll PM you.

Re: @tik Google Rich Snippets

Posted: Thu May 31, 2012 10:20 pm
by Nipplez
Awesome mod! However, I kept getting the error: This page does not contain authorship or rich snippet markup.
After a bunch of messing around I found the culprit. I had to 'currency' to 'pricecurrency' in your mod to get it to work. Hope this helps someone out!

Re: @tik Google Rich Snippets

Posted: Mon Jun 11, 2012 7:49 am
by OC2PS
@Nipplez: That seems odd; perhaps a peculiarity of your installation and theme. Can you PM me a link to one of your product pages?

Re: @tik Google Rich Snippets

Posted: Wed Jun 20, 2012 3:22 pm
by yadav771
ielektros wrote:Here is the problem. I see nothing after clicked Preview.

Image

hi dear their is one thing missing in your work
try to paste the whole link of the product as http://www.example.com/nokia-5800.php and then click on priview

and one more thing make sure you have reviewed it before it check that review part is also working


it is working like Dreams just try it dude

@ielektros

Re: @tik Google Rich Snippets

Posted: Wed Jun 20, 2012 3:27 pm
by OC2PS
Good point, yadav771. I missed that.

@ielektros: You need to enter a product page link in the Google tool, not the site home link. If you enter a product link like the one yadav771 mentions, you will see that it;s working fine.

I tried http://ielektros.de/breadboard-power-supply-dfrobot and I get
ielektros.JPG

ielektros.JPG (86.35 KiB) Viewed 46112 times

To see this live, go to http://www.google.com/webmasters/tools/ ... ly-dfrobot

And in Google Search results
http://www.google.de/#hl=de&output=sear ... 00&bih=739
goog.JPG

goog.JPG (77.12 KiB) Viewed 44959 times


Re: @tik Google Rich Snippets

Posted: Mon Jun 25, 2012 10:58 am
by toast
Hi,

Nice mod you have here.

Is it possible to get it to show more detail than just the reviews and price? I would like to add Shipping and Stock status to the snippet.

Like below:
Reviews - Price - Free Shipping - In stock

Re: @tik Google Rich Snippets

Posted: Mon Jun 25, 2012 3:45 pm
by OC2PS
There is no microdata markup for shipping.

I can consider adding stock status in next version.

Re: @tik Google Rich Snippets

Posted: Thu Jul 12, 2012 8:07 pm
by ork47
Hello.
Google tools shows that I have a snippet works but google search does not appear.

Google tools: http://www.google.com/webmasters/tools/ ... eze-pillow
Google search: https://www.google.ru/#hl=ru&newwindow= ... 24&bih=653
Opencart version 1.5.1.3
Theme: default
http://www.belpol-shop.ru

Re: @tik Google Rich Snippets

Posted: Thu Jul 12, 2012 8:12 pm
by OC2PS
Google's search results usually take a while before they show snippets data.

Google search does not know about the snippets data till the spider comes to index your site. For some sites that could be a few hours, for others, a few weeks.

Furthermore, whether snippets would be shown as such depends entirely on Google Search algorithm and is beyond your (or our) control. All you can do is follow Google's instructions, provide data in the right format (which Google tool check shows) and hope for the best.

That's why Google Tool page always has this disclaimer
Note that there is no guarantee that a Rich Snippet will be shown for this page on actual search results.