How to fix (Invalid enum value in field “availability”) ?

#191676
  • Resolved Kiosk Pick
    Rank Math free

    Hi RankMath Provider!
    I am using the RankMath plugin on my woocommerce website. In Google Search Console, it shows the error (Invalid enum value in field “availability”). Will you please guide us on how to fix it.

    Some of the other errors are:

    • Invalid enum value in field “availability”
    • Missing field “review”
    • Missing field “description”
    • Missing field “aggregateRating”
    • Missing field “brand”

    Preview: https://ibb.co/R9FLkKV

    I have properly checked each product and all those values (Reveiws, description, rating, brand etc.) are already present there. But still, i am getting the error.

    Looking forward to your answers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    Please refer to your KB article to fix your “offers”, “review”, or “aggregateRating” error: https://rankmath.com/kb/aggregate-rating-error/

    Missing field “brand”

    Please follow this guide: https://rankmath.com/kb/woocommerce-custom-brand-schema/

    Missing field “description”

    You can fix the description error by entering a product short description from the product edit page.

    As for the error regarding Invalid enum value in field “availability”, could you please share the affected URL so we can take a closer look at it and advise you further?

    We are looking forward to helping you with this one.

    Review
    Still not fixed. There are already product reviews and ratings there. Search console is still showing an error.
    Search Console:https://ibb.co/xLssHwH
    Product Link: https://kioskpick.com/product/ukkuer-wireless-headphones-bluetooth-headset-foldable-stereo-headphone/
    Google Product Preview: https://ibb.co/Wx7z6Tx
    RankMath Snippet: https://ibb.co/wKLhkXr

    Hello,

    Thanks for getting back to us.

    Upon inspecting your website I noticed that your product page has some extra Product schema coming from your theme or any other plugin.
    Multiple product schemas

    The only Product schema coming from Rank Math is the last one with one single warning and that warning is related to the missing field “Brand”.

    To fix the brand warning, head over to WordPress Dashboard > Rank Math > General Settings > WooCommerce and choose from any of the available fields to use as your product’s brands.

    Brand Value

    If you want to use a custom value for your Brands, you can do that by using the following code in your theme’s functions.php file:

    // Add Brand for Products.
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    $entity['brand'] = 'Rank Math';
    return $entity;
    });

    Replace the “Rank Math” text with your actual brand name.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘How to fix (Invalid enum value in field “availability”) ?’ is closed to new replies.