Structured data availability schema not matching Google results
-
Hello
I am having some problems with the availability Schema output in my structured data.In the past I manually changed the OutOfStock schema to InStoreOnly in the class-wc-structured-data.php file. (See code below)
$markup_offer += array(
‘priceCurrency’ => $currency,
‘availability’ => ‘http://schema.org/’ . ( $product->is_in_stock() ? ‘InStock’ : ‘InStoreOnly’ ),
‘url’ => $permalink,
‘seller’ => array(
‘@type’ => ‘Organization’,
‘name’ => $shop_name,
‘url’ => $shop_url,This did work fine and show correctly on Google a couple of months ago but I think from around Yoast version 11.0 this is no longer showing correctly.
Now, when I get / view the class-wc-structured-data.php file in Dreamweaver, the availability schema is correct and shows as InStoreOnly but when I run a page url through Google’s Structured Data Testing Tool, the availability shows as OutOfStock and Google search results also shows the item as Out of stock.
Do you have any suggestions on what may be causing this to happen?
Kind Regards
James
The topic ‘Structured data availability schema not matching Google results’ is closed to new replies.