@@ -119,8 +119,8 @@ <h1>Shopping cart</h1>
119119 < div class ="box ">
120120 < div class ="box-header ">
121121 < 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 >
124124 </ p >
125125 </ div >
126126 < p id ="address "> </ p >
@@ -170,8 +170,8 @@ <h4 class="modal-title" id="Login">Address</h4>
170170 < div class ="box ">
171171 < div class ="box-header ">
172172 < 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 >
175175 </ p >
176176 </ div >
177177 < p id ="number "> </ p >
@@ -426,10 +426,10 @@ <h4>Coupon code</h4>
426426 $ . getJSON ( '/card' , function ( data ) {
427427 if ( data . status_code !== 500 ) {
428428 $ ( "p#number" ) . text ( "Card ending in " + data . number ) . css ( "color" , "black" ) ;
429- $ ( "#change_payment " ) . hide ( ) ;
429+ $ ( "#add_payment " ) . hide ( ) ;
430430 } else {
431431 $ ( "p#number" ) . text ( "No credit card saved for user." ) . css ( "color" , "red" ) ;
432- $ ( "#change_payment " ) . show ( ) ;
432+ $ ( "#add_payment " ) . show ( ) ;
433433 }
434434 } ) ;
435435
@@ -444,10 +444,10 @@ <h4>Coupon code</h4>
444444 text += "</br>" ;
445445 text += data . country ;
446446 $ ( "p#address" ) . html ( text ) . css ( "color" , "black" ) ;
447- $ ( "#change_shipping " ) . hide ( ) ;
447+ $ ( "#add_shipping " ) . hide ( ) ;
448448 } else {
449449 $ ( "p#address" ) . text ( "No address saved for user." ) . css ( "color" , "red" ) ;
450- $ ( "#change_shipping " ) . show ( ) ;
450+ $ ( "#add_shipping " ) . show ( ) ;
451451 }
452452 } ) ;
453453
0 commit comments