• Resolved James

    (@jamesbestbuys)


    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

Viewing 1 replies (of 1 total)
  • Plugin Support amboutwe

    (@amboutwe)

    By default, Yoast SEO does not output stock schema. The class-wc-structured-data.php appears to be a WooCommerce file and they would be the best to provide you with information about how this file works.

    Please note this forum is reserved for support of the free version of Yoast SEO. If you have a premium add-on like Yoast SEO: WooCommerce, please contact our support team for assistance if the issue is determined to be caused by the premium add-on.

    How can I get premium support?

    This thread has been marked as resolved as the issue is either with WooCommerce or a premium product per the forum guidelines.

Viewing 1 replies (of 1 total)

The topic ‘Structured data availability schema not matching Google results’ is closed to new replies.