Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


cinolas

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!

Link to comment
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.

Link to comment
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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...