mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #28539 from lean-mind/master
[shopify-buy] Rename subtotal => subtotalPrice
This commit is contained in:
Vendored
+2
-2
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user