Merge pull request #28539 from lean-mind/master

[shopify-buy] Rename subtotal => subtotalPrice
This commit is contained in:
Armando Aguirre
2018-08-31 16:04:42 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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 {
+1 -1
View File
@@ -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