Post by OC2PS » Fri May 18, 2012 7:24 am

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 27132 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.
Last edited by OC2PS on Wed Aug 22, 2012 4:25 pm, edited 8 times in total.

OC 2.3.0.2, vQmod 2.6.2, Journal2 theme

Image
My FREE extensions: Rich snippets, FB Likebox, Child theme, Add $x for free shipping, You save $x, Yes to newsletter, Product photos in email, Copy order confirmation email, Top rated items, Most reviewed items, Cant buy Out of Stock items, No tabs, Category menu w/classes, Categories w/thumbnails

OC2PS
Csillámtetoválás,
Csillámtetoválás,
Henna


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by krazy4sales » Mon May 21, 2012 2:22 pm

Is there a way to make this work for multi stores?

Thanks

New member

Posts

Joined
Thu Mar 08, 2012 11:37 pm

Post by OC2PS » Mon May 21, 2012 11:36 pm

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.

OC 2.3.0.2, vQmod 2.6.2, Journal2 theme

Image
My FREE extensions: Rich snippets, FB Likebox, Child theme, Add $x for free shipping, You save $x, Yes to newsletter, Product photos in email, Copy order confirmation email, Top rated items, Most reviewed items, Cant buy Out of Stock items, No tabs, Category menu w/classes, Categories w/thumbnails

OC2PS
Csillámtetoválás,
Csillámtetoválás,
Henna


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by OC2PS » Tue May 22, 2012 6:03 am

v1.1

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

OC 2.3.0.2, vQmod 2.6.2, Journal2 theme

Image
My FREE extensions: Rich snippets, FB Likebox, Child theme, Add $x for free shipping, You save $x, Yes to newsletter, Product photos in email, Copy order confirmation email, Top rated items, Most reviewed items, Cant buy Out of Stock items, No tabs, Category menu w/classes, Categories w/thumbnails

OC2PS
Csillámtetoválás,
Csillámtetoválás,
Henna


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by ielektros » Tue May 22, 2012 6:37 am

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

Arduino shop
http://iElektros.de
the microcontroller solution


User avatar
Newbie

Posts

Joined
Tue Jan 31, 2012 4:01 am

Post by OC2PS » Tue May 22, 2012 6:41 am

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.

OC 2.3.0.2, vQmod 2.6.2, Journal2 theme

Image
My FREE extensions: Rich snippets, FB Likebox, Child theme, Add $x for free shipping, You save $x, Yes to newsletter, Product photos in email, Copy order confirmation email, Top rated items, Most reviewed items, Cant buy Out of Stock items, No tabs, Category menu w/classes, Categories w/thumbnails

OC2PS
Csillámtetoválás,
Csillámtetoválás,
Henna


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by ielektros » Tue May 22, 2012 6:44 am

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

Arduino shop
http://iElektros.de
the microcontroller solution


User avatar
Newbie

Posts

Joined
Tue Jan 31, 2012 4:01 am

Post by OC2PS » Tue May 22, 2012 6:55 am

This is what you should see on Google Rich Snippet Checker if everything works fine:

Image

OC 2.3.0.2, vQmod 2.6.2, Journal2 theme

Image
My FREE extensions: Rich snippets, FB Likebox, Child theme, Add $x for free shipping, You save $x, Yes to newsletter, Product photos in email, Copy order confirmation email, Top rated items, Most reviewed items, Cant buy Out of Stock items, No tabs, Category menu w/classes, Categories w/thumbnails

OC2PS
Csillámtetoválás,
Csillámtetoválás,
Henna


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by ielektros » Tue May 22, 2012 7:06 am

Here is the problem. I see nothing after clicked Preview.

Image

Arduino shop
http://iElektros.de
the microcontroller solution


User avatar
Newbie

Posts

Joined
Tue Jan 31, 2012 4:01 am

Post by OC2PS » Tue May 22, 2012 7:08 am

Are you using Default theme? As mentioned in the Documentation on the Extension's page, this is written for the Default theme.

OC 2.3.0.2, vQmod 2.6.2, Journal2 theme

Image
My FREE extensions: Rich snippets, FB Likebox, Child theme, Add $x for free shipping, You save $x, Yes to newsletter, Product photos in email, Copy order confirmation email, Top rated items, Most reviewed items, Cant buy Out of Stock items, No tabs, Category menu w/classes, Categories w/thumbnails

OC2PS
Csillámtetoválás,
Csillámtetoválás,
Henna


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by ielektros » Tue May 22, 2012 7:14 am

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.

Arduino shop
http://iElektros.de
the microcontroller solution


User avatar
Newbie

Posts

Joined
Tue Jan 31, 2012 4:01 am

Post by OC2PS » Tue May 22, 2012 7:24 am

In that case, let's take this offline. I'll PM you.

OC 2.3.0.2, vQmod 2.6.2, Journal2 theme

Image
My FREE extensions: Rich snippets, FB Likebox, Child theme, Add $x for free shipping, You save $x, Yes to newsletter, Product photos in email, Copy order confirmation email, Top rated items, Most reviewed items, Cant buy Out of Stock items, No tabs, Category menu w/classes, Categories w/thumbnails

OC2PS
Csillámtetoválás,
Csillámtetoválás,
Henna


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by Nipplez » Thu May 31, 2012 10:20 pm

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!

Newbie

Posts

Joined
Fri Apr 13, 2012 10:02 pm

Post by OC2PS » Mon Jun 11, 2012 7:49 am

@Nipplez: That seems odd; perhaps a peculiarity of your installation and theme. Can you PM me a link to one of your product pages?

OC 2.3.0.2, vQmod 2.6.2, Journal2 theme

Image
My FREE extensions: Rich snippets, FB Likebox, Child theme, Add $x for free shipping, You save $x, Yes to newsletter, Product photos in email, Copy order confirmation email, Top rated items, Most reviewed items, Cant buy Out of Stock items, No tabs, Category menu w/classes, Categories w/thumbnails

OC2PS
Csillámtetoválás,
Csillámtetoválás,
Henna


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by yadav771 » Wed Jun 20, 2012 3:22 pm

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
Last edited by yadav771 on Wed Jun 20, 2012 3:27 pm, edited 1 time in total.

Newbie

Posts

Joined
Thu Mar 01, 2012 1:58 pm

Post by OC2PS » Wed Jun 20, 2012 3:27 pm

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 28720 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 27567 times

Last edited by OC2PS on Sat Jun 30, 2012 7:42 am, edited 1 time in total.

OC 2.3.0.2, vQmod 2.6.2, Journal2 theme

Image
My FREE extensions: Rich snippets, FB Likebox, Child theme, Add $x for free shipping, You save $x, Yes to newsletter, Product photos in email, Copy order confirmation email, Top rated items, Most reviewed items, Cant buy Out of Stock items, No tabs, Category menu w/classes, Categories w/thumbnails

OC2PS
Csillámtetoválás,
Csillámtetoválás,
Henna


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by toast » Mon Jun 25, 2012 10:58 am

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

New member

Posts

Joined
Thu Apr 12, 2012 4:50 am

Post by OC2PS » Mon Jun 25, 2012 3:45 pm

There is no microdata markup for shipping.

I can consider adding stock status in next version.

OC 2.3.0.2, vQmod 2.6.2, Journal2 theme

Image
My FREE extensions: Rich snippets, FB Likebox, Child theme, Add $x for free shipping, You save $x, Yes to newsletter, Product photos in email, Copy order confirmation email, Top rated items, Most reviewed items, Cant buy Out of Stock items, No tabs, Category menu w/classes, Categories w/thumbnails

OC2PS
Csillámtetoválás,
Csillámtetoválás,
Henna


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by ork47 » Thu Jul 12, 2012 8:07 pm

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

Newbie

Posts

Joined
Thu Jul 12, 2012 7:56 pm

Post by OC2PS » Thu Jul 12, 2012 8:12 pm

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.

OC 2.3.0.2, vQmod 2.6.2, Journal2 theme

Image
My FREE extensions: Rich snippets, FB Likebox, Child theme, Add $x for free shipping, You save $x, Yes to newsletter, Product photos in email, Copy order confirmation email, Top rated items, Most reviewed items, Cant buy Out of Stock items, No tabs, Category menu w/classes, Categories w/thumbnails

OC2PS
Csillámtetoválás,
Csillámtetoválás,
Henna


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary
Who is online

Users browsing this forum: No registered users and 13 guests