diff --git a/types/shopify-buy/index.d.ts b/types/shopify-buy/index.d.ts index 7140f85515..11f15d9dfd 100644 --- a/types/shopify-buy/index.d.ts +++ b/types/shopify-buy/index.d.ts @@ -310,10 +310,10 @@ declare namespace ShopifyBuy { lineItems: LineItem[]; /** - * Get current subtotal price for all line items. + * Get current subtotal price for all line items, before shipping, taxes, and discounts. * Example: two items have been added to the cart that cost $1.25 then the subtotal will be 2.50 */ - subtotal: string; + subtotalPrice: string; } export interface LineItem extends GraphModel { diff --git a/types/shopify-buy/shopify-buy-tests.ts b/types/shopify-buy/shopify-buy-tests.ts index 0e65990121..2813dc4d5d 100644 --- a/types/shopify-buy/shopify-buy-tests.ts +++ b/types/shopify-buy/shopify-buy-tests.ts @@ -371,7 +371,7 @@ function renderCartItems() { /* Update Total Cart Pricing ============================================================ */ function updateTotalCartPricing() { - $('.cart .pricing').text(formatAsMoney(cart.subtotal)); + $('.cart .pricing').text(formatAsMoney(cart.subtotalPrice)); } /* Format amount as currency