File tree 7 files changed +39
-10
lines changed
7 files changed +39
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " WooIonic" ,
3
3
"app_id" : " " ,
4
- "type" : " ionic-angular"
4
+ "type" : " ionic-angular" ,
5
+ "integrations" : {
6
+ "cordova" : {}
7
+ }
5
8
}
Original file line number Diff line number Diff line change 19
19
"@angular/platform-browser" : " 4.0.0" ,
20
20
"@angular/platform-browser-dynamic" : " 4.0.0" ,
21
21
"@ionic-native/core" : " ^3.6.1" ,
22
+ "@ionic-native/network" : " ^4.2.1" ,
22
23
"@ionic-native/onesignal" : " ^3.6.1" ,
23
24
"@ionic-native/paypal" : " ^3.5.0" ,
24
25
"@ionic-native/splash-screen" : " 3.4.2" ,
33
34
},
34
35
"devDependencies" : {
35
36
"@ionic/app-scripts" : " 1.3.0" ,
36
- "@ionic/cli-plugin-cordova" : " 1.4.0" ,
37
- "@ionic/cli-plugin-ionic-angular" : " 1.3.1" ,
37
+ "@ionic/cli-plugin-cordova" : " 1.6.2" ,
38
+ "@ionic/cli-plugin-ionic-angular" : " 1.4.1" ,
39
+ "ionic" : " 3.10.3" ,
38
40
"typescript" : " ~2.2.1"
39
41
},
40
42
"cordovaPlugins" : [
Original file line number Diff line number Diff line change 21
21
</ ion-card >
22
22
23
23
24
- < ion-list >
25
- < ion-item *ngFor =" let item of cartItems; let i = index ">
24
+ < ion-card *ngFor =" let item of cartItems; let i = index " >
25
+ < ion-item color =" light ">
26
26
27
27
< ion-thumbnail item-left >
28
28
< img [src] ="item.product.featured_src " style ="width: 60px !important; height: 60px !important; "/>
29
29
</ ion-thumbnail >
30
30
< h2 > {{ item.product.title }}</ h2 >
31
31
< p > {{ item.qty }} • {{ item.product.price }}</ p >
32
- < button ion-button clear item-right color ="danger " (click) ="removeFromCart(item, i) ">
32
+ <!-- < button ion-button clear item-right color="danger" (click)="removeFromCart(item, i)">
33
33
<ion-icon name="close-circle"></ion-icon>
34
- </ button >
34
+ </button> -->
35
35
36
36
</ ion-item >
37
- </ ion-list >
37
+
38
+ < ion-item class ="compact ">
39
+ < ion-row no-padding >
40
+ < ion-col col-8 >
41
+ < button ion-button icon-only clear color ="danger " (click) ="changeQty(item, i, -1) ">
42
+ < ion-icon name ="remove-circle "> </ ion-icon >
43
+ </ button >
44
+ < button ion-button clear color ="danger "> {{ item.qty }} </ button >
45
+ < button ion-button icon-only clear color ="danger " (click) ="changeQty(item, i, 1) ">
46
+ < ion-icon name ="add-circle "> </ ion-icon >
47
+ </ button >
48
+ </ ion-col >
49
+ < ion-col col-4 style ="text-align: right; ">
50
+ < button ion-button small outline (click) ="removeFromCart(item, i) " color ="danger " style ="width: 64px; "> Remove</ button >
51
+ </ ion-col >
52
+ </ ion-row >
53
+ </ ion-item >
54
+ </ ion-card >
38
55
39
56
40
57
< ion-grid >
Original file line number Diff line number Diff line change 1
1
page-cart {
2
-
2
+ .compact .item-inner .input-wrapper ion-label {
3
+ margin : 0 !important ;
4
+ }
3
5
}
Original file line number Diff line number Diff line change @@ -78,5 +78,6 @@ export class Cart {
78
78
} )
79
79
80
80
}
81
+
81
82
82
83
}
Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ export class HomePage {
25
25
26
26
this . page = 2 ;
27
27
28
- this . WooCommerce = this . woocommerce . initialize ( ) ;
28
+ this . WooCommerce = WC ( {
29
+ url : "http://samarth.cloudapp.net" ,
30
+ consumerKey : "ck_d6c5feec9ea1c407d2f91661c5137c6e3e48ae3b" ,
31
+ consumerSecret : "cs_de8e6cf03a5afd10491dfb1756415ac5a0169ae8"
32
+ } ) ;
29
33
30
34
this . loadMoreProducts ( null ) ;
31
35
You can’t perform that action at this time.
0 commit comments