-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#115 order cart now working, now need a check out page
- Loading branch information
Showing
10 changed files
with
165 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,71 @@ | ||
<div (click)="update()"> | ||
<div (click)="openShoppingCartModal()"> | ||
<i class="fa fa-shopping-cart fa-lg" aria-hidden="true"></i> | ||
<div class="quantity-background"> | ||
<strong>{{numberOfItems}}</strong> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<modal #shoppingCart class="modal_vcenter"> | ||
<modal-header [show-close]="true"> | ||
<h1>SHOPPING CART</h1> | ||
</modal-header> | ||
<modal-body> | ||
<table class="table table-sm table-hover"> | ||
<thead> | ||
<tr> | ||
<th>#</th> | ||
<th>Item</th> | ||
<th>Qty</th> | ||
<th>Unit Price</th> | ||
<th>Weight</th> | ||
<th>Total</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr *ngFor="let item of orderCart.OrderCart.PackageList; let i = index"> | ||
<th scope="row">{{i+1}}</th> | ||
<td> | ||
{{ item.Item }} | ||
<ul class="list-inline"> | ||
<li><a class="pointer" (click)="removeItem(i)">Remove</a></li> | ||
</ul> | ||
</td> | ||
<td id="item-quanity"> | ||
<input type="number" class="form-control" [(ngModel)]="item.Quantity" (ngModelChange)="itemChanged($event)"> | ||
</td> | ||
<td>{{ item.Price }}</td> | ||
<td>{{ item.Weight }}</td> | ||
<td>{{ item.Total | number:'1.2-2' }}</td> | ||
</tr> | ||
<tr> | ||
<td colspan="2" class="text-right">Total Weight</td> | ||
<td>{{ orderCart.OrderCart.TotalWeight }}</td> | ||
<td colspan="2" class="text-right">Subtotal</td> | ||
<td>{{ orderCart.OrderCart.SubTotal | number:'1.2-2' }}</td> | ||
</tr> | ||
<tr> | ||
<td colspan="5" class="text-right">Delivery Charge</td> | ||
<td>{{ orderCart.OrderCart.ServiceCharge }}</td> | ||
</tr> | ||
<tr> | ||
<td colspan="5" class="text-right">Total</td> | ||
<td>{{ orderCart.OrderCart.TotalToPay | number:'1.2-2' }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<div *ngIf="orderCart.Description"> | ||
<h3>CUSTOM ORDER</h3> | ||
<textarea [(ngModel)]="orderCart.Description"></textarea> | ||
</div> | ||
|
||
</modal-body> | ||
<modal-footer> | ||
<form> | ||
<div class="form-group"> | ||
<button class="btn btn-primary pull-right" (click)="checkOut()">CHECKOUT</button> | ||
</div> | ||
</form> | ||
</modal-footer> | ||
</modal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ <h1 class="control-label">{{formTitle}}</h1> | |
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="form-group"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,4 +104,5 @@ li a { | |
|
||
textarea { | ||
width: 100%; | ||
padding: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters