CompareAtPrice correct on a ProductVariant, but not on Product

Kieran-madefres
Tourist
9 0 2

We have some items on sale, with a `compareAtPrice` higher than the `price`, that are displaying correctly on our website. But when getting the product’s `minVariantPrice` inside both `priceRange` and `compareAtPriceRange` these values are always equal, the `compareAtPrice` never seems to be higher than the actual `price`. However, when accessing those variables inside a `productVariant` they’re different (which is correct). This is consistent on all products with a `compareAtPrice`.

 

Shouldn’t `minVariantPrice` inside `compareAtPriceRange` on a product relate to the cheapest `compareAtPrice` on a variant, whether that is the default variant or not?

Replies 10 (10)