diff --git a/src/app/admin/orderTable.component.html b/src/app/admin/orderTable.component.html index 4cccfcc..bcc43c6 100644 --- a/src/app/admin/orderTable.component.html +++ b/src/app/admin/orderTable.component.html @@ -4,30 +4,52 @@ Display Shipped Orders -
+ - + + + + + + + - - + + + + + + + + +
+
+ + + + - - - - - - - - - - - - - - - \ No newline at end of file +
NameZipCart
IdNameAddressCart
There are no orders
{{ o.id }}{{ o.name }} + {{ o.address}} +
{{ o.zip}} - {{ o.city }} +
{{ o.state }} +
{{ o.country }} +
+
+
+ {{ line.product.name }} +
{{ line.product.price | currency:"USD":"symbol":"2.2-2" }} +
+ {{ line.quantity }} + + {{ line.quantity*line.product.price | currency:"USD":"symbol":"2.2-2" }} + Total + {{ o.cart.cartPrice | currency:"USD":"symbol":"2.2-2" }} + +
+ + +
+
{{o.name}}{{o.zip}}ProductQuantity - - -
{{line.product.name}}{{line.quantity}}
\ No newline at end of file diff --git a/src/app/model/cart.model.ts b/src/app/model/cart.model.ts index dbed539..38ed613 100644 --- a/src/app/model/cart.model.ts +++ b/src/app/model/cart.model.ts @@ -52,7 +52,7 @@ export class Cart { export class CartLine { constructor(public product: Product, public quantity: number) {} - get lineTotal() { + getLineTotal() { return this.quantity * this.product.price; } } \ No newline at end of file diff --git a/src/app/store/cartDetail.component.html b/src/app/store/cartDetail.component.html index 8db98a8..419eb03 100644 --- a/src/app/store/cartDetail.component.html +++ b/src/app/store/cartDetail.component.html @@ -37,7 +37,7 @@

Your Cart

{{ line.product.price | currency:"USD":true:"2.2-2" }} - {{ line.lineTotal | currency:"USD":true:"2.2-2" }} + {{ line.quantity*line.product.price | currency:"USD":true:"2.2-2" }}