• Resolved rigettesaycon

    (@rigettesaycon)


    Google search console is showing Missing field “name” error on my product pages and 7 warnings: Missing field “aggregateRating”, Missing field “review”, Missing field “brand”, No global identifier provided (e.g., gtin, mpn, isbn), Missing field “priceValidUntil”, Missing field “url”, Missing field “sku”.

    I have been doing some research to fix the error but I can’t seem to find a solution. I tried adding this code the unction.php file:

    function custom_woocommerce_structured_data_product ($data) {
    global $product;
    $data[‘brand’] = $shop_name = get_bloginfo( ‘name’ );
    $data[‘mpn’] = $product->get_sku() ?? null;
    return $data;
    }
    add_filter( ‘woocommerce_structured_data_product’, ‘custom_woocommerce_structured_data_product’ );

    And validated the fix but it’s still showing the error and warnings ??

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Ross V. a11n

    (@rossviviano)

    Automattic Happiness Engineer

    Hi there!

    This has been discussed at length in this thread.

    Best,

    Ross

    Thread Starter rigettesaycon

    (@rigettesaycon)

    Thank you @rossviviano I checked the discussion but I did not read about fixing the ‘Missing field “name” error’?

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    The thread that was linked to discusses the “aggregateRating”, “review”, “brand”, etc fields, but does not involve the Missing field "name" error.

    That field should not be an issue with the core WooCommerce plugin though. The few cases we’ve seen of it before, it was usually caused by an issue with the active theme on the site overriding the schema (or perhaps another plugin on the site).

    I would recommend reaching out to your theme developer to ask if they have seen other cases of this.

    If that doesn’t help, then I would recommend doing a conflict test to narrow down what is causing the issue. You can use the testing tool here, and we have a guide for conflict testing here:
    https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    I hope that helps! Have a wonderful day!

    Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Missing field “name” Error in Google Search Console’ is closed to new replies.