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

CurrentSubtotalPrice price on an Order seems to include order level discounts #1100

Open Kieran-madefresh opened 4 years ago

Kieran-madefresh commented 4 years ago

We wish to display our order cost information the same way it’s displayed on the customer’s order information web page. That is:

Item = $10.00

Order discount of 10% = -$1.00

Shipping = Free

Total = $9.00

But when accessing CurrentSubtotalPrice, the value is $9.00 (already including the discount). On the description of CurrentSubtotalPrice, it states that The subtotal of line items and their discounts, excluding line items that have been removed. Does not contain order-level discounts, shipping costs, or shipping discounts. So shouldn’t subtotalPrice be $10.00 in this example?

This is happening regardless of whether the discount applies to an Order or a LineItem, and on the latest version of the SDK.