@@ -119,8 +119,8 @@ <h1>Shopping cart</h1>
119
119
< div class ="box ">
120
120
< div class ="box-header ">
121
121
< h4 style ="display: inline; "> Shipping Address</ h4 >
122
- < p id ="change_shipping " style ="display: inline; float: right; ">
123
- < a data-toggle ="modal " data-target ="#address-modal " href ="#change "> Add</ a >
122
+ < p id ="add_shipping " style ="display: inline; float: right; ">
123
+ < a data-toggle ="modal " data-target ="#address-modal " href ="#add "> Add</ a >
124
124
</ p >
125
125
</ div >
126
126
< p id ="address "> </ p >
@@ -170,8 +170,8 @@ <h4 class="modal-title" id="Login">Address</h4>
170
170
< div class ="box ">
171
171
< div class ="box-header ">
172
172
< h4 style ="display: inline; "> Payment</ h4 >
173
- < p id ="change_payment " style ="display: inline; float: right; ">
174
- < a data-toggle ="modal " data-target ="#card-modal " href ="#change "> Add</ a >
173
+ < p id ="add_payment " style ="display: inline; float: right; ">
174
+ < a data-toggle ="modal " data-target ="#card-modal " href ="#add "> Add</ a >
175
175
</ p >
176
176
</ div >
177
177
< p id ="number "> </ p >
@@ -426,10 +426,10 @@ <h4>Coupon code</h4>
426
426
$ . getJSON ( '/card' , function ( data ) {
427
427
if ( data . status_code !== 500 ) {
428
428
$ ( "p#number" ) . text ( "Card ending in " + data . number ) . css ( "color" , "black" ) ;
429
- $ ( "#change_payment " ) . hide ( ) ;
429
+ $ ( "#add_payment " ) . hide ( ) ;
430
430
} else {
431
431
$ ( "p#number" ) . text ( "No credit card saved for user." ) . css ( "color" , "red" ) ;
432
- $ ( "#change_payment " ) . show ( ) ;
432
+ $ ( "#add_payment " ) . show ( ) ;
433
433
}
434
434
} ) ;
435
435
@@ -444,10 +444,10 @@ <h4>Coupon code</h4>
444
444
text += "</br>" ;
445
445
text += data . country ;
446
446
$ ( "p#address" ) . html ( text ) . css ( "color" , "black" ) ;
447
- $ ( "#change_shipping " ) . hide ( ) ;
447
+ $ ( "#add_shipping " ) . hide ( ) ;
448
448
} else {
449
449
$ ( "p#address" ) . text ( "No address saved for user." ) . css ( "color" , "red" ) ;
450
- $ ( "#change_shipping " ) . show ( ) ;
450
+ $ ( "#add_shipping " ) . show ( ) ;
451
451
}
452
452
} ) ;
453
453
0 commit comments