Why is the wrong price showing in my product variant schema?

Hello Folk,

Hope you are well !!

I have 1 product with 2 variant 1 is 100ml other is 50ml. And 100ml price is $39.99 and 50ml price is 4.50.
However, if i select 100ml price product URL and run on https://validator.schema.org/ it display price $4.50 on schema in place of $39.99. So any idea

Thank you

1 Like

Hello @Ekta_Merai

Hope you are well !!!

You have to pass “selected_or_first_available_variant” variable with price for e.g
{% if variant == product.selected_or_first_available_variant %}

on

Hope it works