diff --git a/src/app/cart/cart.page.html b/src/app/cart/cart.page.html
index 87c4e24..1642910 100644
--- a/src/app/cart/cart.page.html
+++ b/src/app/cart/cart.page.html
@@ -6,8 +6,71 @@
-
+
ITEMS
+
+ Show Order Details
+ Hide Order Details
+
+
+ -
+ 1. Mc Chicken Meals Change
+
+ - Rs. 170
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+
+
+
+
+ Add on
+
+
+
+
+
PROMOCODE
+ Apply
+
+
+
+
+ - Rs. 170
+ - Rs.6.80
+ - Rs.20
+
+
+
+ Total Rs. 197
+
+
+
+
+
Your total savings
+ Rs. 85
+
+
+
Pay Now
+
diff --git a/src/app/cart/cart.page.scss b/src/app/cart/cart.page.scss
index 40b6ad6..0f1ccf8 100644
--- a/src/app/cart/cart.page.scss
+++ b/src/app/cart/cart.page.scss
@@ -47,3 +47,147 @@
font-weight: 600;
}
}
+
+.cart-utilities-holder {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ width: 90%;
+ margin: 0 auto;
+
+ h5 {
+ color: var(--brand-dark-grey);
+ font-size: 12px;
+ }
+
+ ion-button {
+ --padding-end: 0;
+ --color: var(--brand-blue);
+ font-size: 10px;
+ margin: 0;
+
+ span,ion-icon {
+ vertical-align: middle;
+ }
+ }
+}
+
+ul {
+ padding: 0;
+ margin: 0;
+ list-style: none;
+}
+
+.cart-item-list {
+ width: 90%;
+ margin: 0 auto;
+ border-bottom: 1px solid #efefef;
+
+ .cart-item {
+ margin-bottom: 20px;
+ }
+
+ header {
+ font-size: 14px;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ font-weight: bold;
+ color: dimgrey;
+
+ ion-button {
+ --padding-end: 0;
+ --color: var(--brand-blue);
+ font-size: 10px;
+ margin: 0;
+ }
+ }
+
+ .add-on-button {
+ --border-width: 1px;
+ --border-color: var(--brand-blue);
+ --padding-top: 0;
+ --padding-bottom: 0;
+ font-size: 10px;
+ margin: 0;
+ height: 25px;
+ }
+}
+
+.breakups {
+ color: var(--brand-dark-grey);
+ font-size: 10px;
+
+ li {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin: 10px auto;
+ }
+
+ .total {
+ color: dimgrey;
+ }
+
+ .quantity-scale-holder {
+ display: flex;
+ align-items: center;
+ border: 1px solid var(--brand-grey);
+ border-radius: 10px;
+ margin: 10px 0;
+
+ button {
+ font-size: 10px;
+ height: 20px;
+ width: 30px;
+ background-color: transparent;
+ &:first-child {
+ border-right: 1px solid var(--brand-grey);
+ }
+ &:last-child {
+ border-left: 1px solid var(--brand-grey);
+ }
+ }
+
+ .quantity {
+ padding: 0 10px;
+ }
+ }
+
+ .time-holder {
+ font-size: 10px;
+
+ a {
+ text-decoration: underline;
+ }
+ }
+}
+
+.total-price-breakup {
+ width: 90%;
+ margin: 0 auto;
+
+ ul {
+ border-top: 1px solid #efefef;
+ padding: 5px 0;
+ }
+
+ .total-price {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ font-size: 12px;
+ width: 100%;
+ color: dimgrey;
+ padding: 13px 0;
+ border-top: 1px solid #efefef;
+ border-bottom: 1px solid #efefef;
+ font-weight: bold;
+ }
+}
+
+.pay-button {
+ width: 85%;
+ margin: 10px auto;
+ font-size: 12px;
+}
diff --git a/src/app/cart/cart.page.ts b/src/app/cart/cart.page.ts
index 9c4387e..f483ff0 100644
--- a/src/app/cart/cart.page.ts
+++ b/src/app/cart/cart.page.ts
@@ -7,6 +7,7 @@ import { Location } from '@angular/common';
styleUrls: ['./cart.page.scss'],
})
export class CartPage implements OnInit {
+ show_order_details: boolean = false;
constructor(
private location: Location
diff --git a/src/app/models/cart-item.ts b/src/app/models/cart-item.ts
index a6647b8..393b24e 100644
--- a/src/app/models/cart-item.ts
+++ b/src/app/models/cart-item.ts
@@ -6,7 +6,7 @@ class CartItem {
pickup_time: Date;
outlet_id: string;
mall_id: string;
- is_parcel: boolean;
+ take_away: boolean;
total_price: number;
constructor(initializationObject: any) {
@@ -30,7 +30,7 @@ class CartItem {
throw new Error('Missing Mall ID');
}
- if (!initializationObject.hasOwnProperty('is_parcel')) {
+ if (!initializationObject.hasOwnProperty('take_away')) {
throw new Error('Missing Parcel Flag');
}
this.menu_item = initializationObject.menu_item;
@@ -38,7 +38,7 @@ class CartItem {
this.pickup_time = initializationObject.pickup_time;
this.outlet_id = initializationObject.outlet_id;
this.mall_id = initializationObject.mall_id;
- this.is_parcel = initializationObject.is_parcel;
+ this.take_away = initializationObject.take_away;
this.total_price = initializationObject.total_price;
}
}
@@ -49,7 +49,7 @@ export interface ICartItem {
pickup_time: Date;
outlet_id: string;
mall_id: string;
- is_parcel: boolean;
+ take_away: boolean;
total_price: number;
}
diff --git a/src/app/outlet-details/outlet-details.page.ts b/src/app/outlet-details/outlet-details.page.ts
index 3801f00..dd186d9 100644
--- a/src/app/outlet-details/outlet-details.page.ts
+++ b/src/app/outlet-details/outlet-details.page.ts
@@ -58,7 +58,7 @@ export class OutletDetailsPage implements OnInit {
pickup_time: new Date(new Date().setMinutes(new Date().getMinutes() + item.wait_duration)),
outlet_id: this.outlet_details.id,
mall_id: this.mall_details.id,
- is_parcel: false,
+ take_away: true,
total_price: this.calculateDiscount(item.price, item.discount)
});