Jump to content
cinolas

data-vocabulary.org to schema.org breadcrumb conversion to avoid Google search console error

Recommended Posts

Like many of you Im sure I'm receiving Google search console errors about my site using the soon to be deprecated data-vocabulary.org schema. Google will no longer support it as of April 6 2020.

How would I go about converting osCommerce 2.3.4 BS to use schema.org instead? There are many pages online showing the differences, which I'm sure I could figure out, but the new schema requires additional data like the position of the item in the breadcrumb. This needs to be calculated to be included.

Has anyone done this already?

I'm digging around to see if I can manage the change but pointers would be greatly appreciated.

Cheers!

Share this post


Link to post
Share on other sites

I did it with the breddcrumb code from Phoenix  just yesterday .... seems to work! Google seems happy for most pages!

Edited by azpro

Share this post


Link to post
Share on other sites

It's actually pretty simple:

Simply change the markup in /includes/classes/breadcrumbs.php
And you can add the <meta itemprop="position" content="3"> part, use ($i+1) for the content and your get the right position.

Share this post


Link to post
Share on other sites

I recommend you use this content module:

https://github.com/gburton/CE-Phoenix/blob/master/includes/modules/header_tags/ht_breadcrumb_schema.php

Off course you also need to use the changed class:

https://github.com/gburton/CE-Phoenix/blob/master/includes/classes/breadcrumb.php

And the header module:

https://github.com/gburton/CE-Phoenix/blob/master/includes/modules/content/header/cm_header_breadcrumb.php

Since you are apparently not on Phoenix / older Community Editions - you might have to add more changes.

Share this post


Link to post
Share on other sites

One question though, google's rich results seem to prefer the tag 'SKU' instead of OsC's 'model'. Where can we find the piece of code in breadcrumb to change this? 

Thank you

Edited by Krisz1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×