We have a B2B wholesale store that offers different product pricing and price currency to customers depending on their assigned user role. All products have a base price but I don’t want it to show in the structured data as some customers may have higher or lower price.
Structured Data is showing critical issues as I’ve excluded the pricing in structured data.
add_filter( "rank_math/snippet/rich_snippet_product_entity", function( $entity ) {
unset($entity['offers']['price']);
unset($entity['offers']['priceSpecification']);
unset($entity['offers']['priceValidUntil']);
unset($entity['offers']['priceCurrency']);
unset($entity['mainEntityOfPage']['author']);return $entity;
});
Is there any way to disable the merchant listing schema as there is no pricing but for the product schema can I get it to work with no pricing?
Can I set null or 0 for all? Can I keep it removed but do another workaround to get valid structured data?