Variable product rich snippet issue

  • Hi there,

    I found your php snippet code to solve the problem with “ValidUntilDate” missing. But I am now having an error regarding the price data. And few others rich data missing. It only concerns variable product, could you please help to solve this issue?

    Thank you in advance for your support.

    Valentin.

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

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    Temporary Login Without Password

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    WP Security Audit Log

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I checked a sample of the products on your pages and I noticed that you are having a few errors regarding the aggregate rating and review.

    The aggregate rating and review fields are taken from your actual product reviews that your buyers/customers leave on your products.
    http://i.mythemeshop.com/cIBqH4

    If you don’t have any reviews yet, that is going to show up as a warning in the schema testing tool. That’s because Google will actually look for those fields.

    Please acquire some reviews and ratings to get rid of the aggregate rating and review warnings.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Thank you! I did read Rank Math explanations regarding “AggregateRating” and “Reviews” so I understand that these fields need to have values to fix this. But in the Search Console it is written

    “Either “Offers”, “Review”, or “AggregateRating” Should be …” We can read “OR” so we don’t need to have the three data filled. But some of my products have reviews and are showing this error. For example: https://simplifiemoilavie.com/produit/anneau-multifonction/
    And you can see SKU is also showing on the product page but I have the warning for this too.

    Could you please also explain to me why I didn’t have any errors and warnings before installing the Rank Math plugin?

    I also have same issue too. But I have more issues with warning than before in the google search console result. How to fix it ?

    Products issues detected on https://www.egtours.com/

    To the owner of https://www.egtours.com/:

    Search Console has identified that your site is affected by 1 Products issues:

    Top Warnings

    Warnings are suggestions for improvement. Some warnings can affect your appearance on Search; some might be reclassified as errors in the future. The following warnings were found on your site:

    Missing field “priceValidUntil”

    We recommend that you fix these issues when possible to enable the best experience and coverage in Google Search.

    Fix Products issues

    Hello @valentinln,

    Thank you for contacting Rank Math today.

    Would you mind letting us know the plugin that you were previously using for the product rich snippets? Rank Math works a bit different by capturing the product data from WooCommerce instead of you having to manually enter the attributes. All the errors highlighted on the search console are for missing data that you have omitted on your product pages.
    The same 6 errors are reported and you will need to enter this information to fix these errors:
    null

    @chitragurung You can easily fix the pricevalid until warning on your products by adding a sale price to all the affected products.

    Looking forward to helping you. Thank you.

    ​​​​​​

    I have been using Schema Markup Rich Snippets after installation of rank math

    Hi Chitra,

    Thanks for the response.

    As a workaround, you can also set the expiry date for the product sale price to a future date using the following code on your functions.php file:

    /**
     * Filter to add Brand Name for Products.
     *
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        $entity['offers']['priceValidUntil'] = '2050-12-31';
        return $entity;
    });

    I hope this info helps. Thank you.

    Almost all our product pages has error with google. I am not sure whether Schema Markup Rich Snippets plugin is working or not? or has issue with woocommerce ?

    Also we have Either “offers”, “review”, or “aggregateRating” mark up in our product pages but still got errors of

    Either “offers”, “review”, or “aggregateRating” should be specified
    First detected: 2/20/19
    Status: Error

    Hi Chitra,

    We might need to take a closer look at the settings. Please create a new ticked and edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    Temporary Login Without Password

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    WP Security Audit Log

    We really look forward to helping you.

    Hi Michael,

    Thanks for coming back to me. I have read through your support how to deal with the « brand » warning. However « « description », « image » and « SKU » are filled in, so I don’t understand why it is still showing warnings. And regarding the errors I don’t understand why « Offers » is concerned because I don’t want to make a specific offer.

    Thank you in advance for your help.

    Hello,

    Thank you for contacting Rank Math today.

    We have just released an update to address some schema isssues, could you please update and then validate the fix from your search console and let me know if the errors are still reported.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Now tags, category, location also got error of schema mark up.

    Hi Michael,
    Do I still need the code that one of your colleague provided me on your Facebook page if I installed the update?

    The code is:

    add_filter( ‘rank_math/snippet/rich_snippet_product_entity’, function( $entity ) {
    global $product;
    if ( $product->is_type( ‘variable’ ) ) {
    foreach( $entity[‘offers’] as $key => $offer ) {
    $entity[‘offers’][$key][‘priceValidUntil’] = ‘2019-10-23’;
    }
    } else {
    $entity[‘offers’][‘priceValidUntil’] = ‘2019-10-23’;
    }
    return $entity;
    });

    Thanks

    Hi Chitra,

    Thanks for the patience.

    Please open a new support ticket and share some temporary access so that we can check this issue for you?

    Hi Valentin, yes please keep this code on your theme since it works to fix the missing sale price date on your products.

    I hope this info helps. Thank you.

    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 15 replies - 1 through 15 (of 15 total)

The ticket ‘Variable product rich snippet issue’ is closed to new replies.