-
Q#1
I did not install rank Math in WordPress so how I can resolve this if I installed Yoast plugin?Q#2
If i have custom website how i can resolve it?Q#3
Someone from your team share a code which we can use but their is the fix value for shipping detail, how i can create dynamic value?Here is the filter code:
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;
});
The ticket ‘hasMerchantReturnPolicy and shippingDetails Error In GSC’ is closed to new replies.