Shopify / mobile-buy-sdk-ios

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using Apple Pay or their credit card.
MIT License
452 stars 199 forks source link

CompareAtPrice correct on a ProductVariant, but not on Product #1102

Open Kieran-madefresh opened 4 years ago

Kieran-madefresh commented 4 years ago

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? This is happening on the latest version of the SDK.