-
Hello Rankmath people!
Thanks for making such a wonderful plugin!
I just wanted to inform you guys about a potential bug/undesirable behaviour.
On our variable product pages, the property product:price:amount is always showing the lowest price variable.
This is a problem for us with Google Merchant because it confuses Google when indexing all variations of a product and they are often rejected.
I have managed to remove the product:price:amount property using
add_filter( "rank_math/opengraph/facebook/product_price_amount", function( $content ) { global $product; return ''; });
But of course it would be more desirable if the price followed each variation’s price.
The way we distinguish between each variation is by using the variable attribute as a parameter in the product URL, for example: https://purelyprofessional.dk/shop/hair-repair-2/?attribute_vaegt=1000%20ml. (large size)
But no matter what variation we tell Google to index, the product:price:amount is always showing the lowest variation price.
This results in our products often being rejected by Google Merchant, but hopefully removing it will mitigate this.Thanks!
—
Lars
The ticket ‘product:price:amount for variable products’ is closed to new replies.