SCHEMA ISSUE – RICHO SNIPPET

#749863
  • Resolved Paco Ortega
    Rank Math free

    Hello, I have a problem with RankMath SEO in Rich Snippet Configuration

    When I request the indexing of my page from Google through Google Search Console, when entering the URL of my site I get the following errors.

    1.- Invalid ISO 4217 currency code EUR
    2.- “hasMerchantReturnPolicy” field is missing
    3.- “ShippingDetails” field is missing

    Can you help me?
    Regards
    Paco Ortega

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

    I apologize for the issues you are facing with the Rich Snippet configuration in Rank Math SEO.

    Based on the errors you mentioned, here are some possible solutions:

    1. Invalid ISO 4217 currency code EUR: To resolve this issue, ensure that you are using a valid ISO 4217 compliant currency code. You can refer to the ISO 4217 Currency Codes list to find the correct code for EUR.

    2. “hasMerchantReturnPolicy” field is missing: If this field is missing, you may need to check your Schema Markup configuration in Rank Math. Make sure that the necessary fields, including “hasMerchantReturnPolicy,” are correctly configured. You can refer to the Service Schema Type guide for assistance.

    3. “ShippingDetails” field is missing: Similarly, if the “ShippingDetails” field is missing, ensure that your Schema Markup includes this information. You can review the Schema Markup settings in Rank Math and make sure that all required fields, including “ShippingDetails,” are properly set up.

    If you need further assistance or clarification on how to address these specific issues, please feel free to reach out to our support team directly here. We are here to help you with any questions or concerns you may have regarding Schema Markup in Rank Math SEO.

    Thank you for bringing this matter to our attention.

    Regards

    Sources:
    Why Are My Rich Snippets Not Showing Up in Google Search? » Rank Math
    Google Search Console Missing Field Warning » Rank Math
    Service Schema Type » Rank Math

    Hello again

    I cant find hasMerchantReturnPolicy and ShippingDetails in the link toy send me: Service Schema Type

    Would yow show me where i need complete thisparameters and if them must be filled in General Settings or Metas and titles configuration in RankMat?

    Thanks
    Paco Ortega

    Hello,

    Thanks for contacting us, and sorry for any inconvenience this might have caused you.

    These fields hasMerchantReturnPolicy and shippingDetails, are related to the shipping and return information for your products, which Google added to its Merchant Listings report. You can learn more about them here: https://developers.google.com/search/blog/2023/04/shipping-and-returns-information

    This feature is not available in the plugin yet, so the only possible way would be to edit the following filter with the appropriate data for these properties so it gets included in the Product Schema as well: https://rankmath.com/kb/filters-hooks-api-developer/#change-post-schema-data

    We have created an example filter that would help add this data and it assumes that the refund policy is only applicable to the USA and that it has a 30-day refund period.

    The shipping rate section and also assumes a flat fee of 5$ to ship within the United States.

    This would need to be changed according to the website specifications but it should be a good starting point:

    
    add_filter( "rank_math/snippet/rich_snippet_product_entity", function( $entity ) {
        // Return policy
        $entity['offers']['hasMerchantReturnPolicy']['@type'] = 'MerchantReturnPolicy';
        $entity['offers']['hasMerchantReturnPolicy']['applicableCountry'] = 'US';
        $entity['offers']['hasMerchantReturnPolicy']['returnPolicyCategory'] = 'https://schema.org/MerchantReturnFiniteReturnWindow';
        $entity['offers']['hasMerchantReturnPolicy']['merchantReturnDays'] = 30;
        $entity['offers']['hasMerchantReturnPolicy']['returnMethod'] = 'https://schema.org/ReturnByMail';
        $entity['offers']['hasMerchantReturnPolicy']['returnFees'] = 'https://schema.org/FreeReturn';
    
        // Shipping details
        $entity['offers']['shippingDetails']['@type'] = 'OfferShippingDetails';
        $entity['offers']['shippingDetails']['shippingRate']['@type'] = 'MonetaryAmount';
        $entity['offers']['shippingDetails']['shippingRate']['value'] = 5;
        $entity['offers']['shippingDetails']['shippingRate']['currency'] = 'USD';
        $entity['offers']['shippingDetails']['shippingDestination']['@type'] = 'DefinedRegion';
        $entity['offers']['shippingDetails']['shippingDestination']['addressCountry'] = 'US';
    
        return $entity;
    });
    

    If you’re not sure how to add this code, you can follow this guide:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how that goes and don’t hesitate to get in touch if you have any other questions.

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

The ticket ‘SCHEMA ISSUE – RICHO SNIPPET’ is closed to new replies.