Guest User

Untitled

a guest
Nov 23rd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. $(".coupon-env").addClass("coupon-visible");
  2.  
  3. $(".coupon > .btn-primary").val("APPLY DISCOUNT");
  4.  
  5. $(".sidebar_zip_code_checker_error").html("Your target is out of our area. Sorry.")
  6.  
  7. $("#coupon_code").attr("placeholder", "enter discount");
  8.  
  9. $(".cart_totals h2").html("BASKET TOTALS");
  10.  
  11. $(".cart_totals h2").show();
  12.  
  13. $("#update-cart-btn").css("background-color", "#007B93");
  14.  
  15.  
  16. $('body').bind('beforeunload',function(){
  17. $(".DeliveryError").html("FREE DELIVERY");
  18. });
  19.  
  20.  
  21.  
  22.  
  23.  
  24. $('div.cart_totals > table > tbody > tr.shipping > td > p').html("FREE DELIVERY!")
  25. $('div.cart_totals > table > tbody > tr.shipping > td > p').css('color', 'black');
  26.  
  27. $('div.cart_totals.calculated_shipping > table > tbody > tr.shipping > td').html("FREE DELIVERY!");
  28. $('div.cart_totals.calculated_shipping > table > tbody > tr.shipping > td').css("color", "black");
  29.  
  30. $('#wp_sidebarzipcodechecker-2').before("<a href='#' class='showZipCheck'>Is your target in our area?</a>");
  31. $('.widgettitle').html("Let's check that zip");
  32.  
  33.  
  34.  
  35.  
  36. $('#checkoutZipcode > .wpb_wrapper > #wp_sidebarzipcodechecker-2 > h2').css("font-size","18px");
  37.  
  38. $('#checkoutZipcode > .wpb_wrapper > #wp_sidebarzipcodechecker-2 > h2').css("color","black");
  39.  
  40. $("#update-cart-btn").html('Update Basket');
  41.  
  42.  
  43. $( ".showZipCheck" ).click(function(event) {
  44. event.preventDefault();
  45. $(this).slideUp();
  46. $("#checkoutZipcode > .wpb_wrapper > #wp_sidebarzipcodechecker-2").slideDown();
  47. });
  48.  
  49. $('#zip_code').attr("placeholder", "Enter a zipcode to check");
  50.  
  51.  
  52. $( document ).ajaxComplete(function() {
  53. $(".DeliveryError").css("color", "black");
  54.  
  55. $(".DeliveryError").html("FREE DELIVERY!");
  56. $(".coupon-env").addClass("coupon-visible");
  57. $("div.cart_totals.calculated_shipping > table > tbody > tr.shipping > td").css("color", "black");
  58. $("div.cart_totals.calculated_shipping > table > tbody > tr.shipping > td").html("FREE DELIVERY!");
  59.  
  60. $('.shipping > td:nth-child(2) > p:nth-child(1)').html('FREE DELIVERY!');
  61. $('.shipping > td:nth-child(2) > p:nth-child(1)').css("color", "black");
  62.  
  63. if ( $( ".shop-empty-cart-page" ).length ) {
  64.  
  65. $("#checkoutZipcode").hide();
  66.  
  67. }
  68.  
  69.  
  70. });
  71.  
  72. /*-------------------------------------------JS ENDS HERE--------------------------------------------------------*/
  73.  
  74.  
  75. /*-----------------------------------------CSS STARTS HERE-------------------------------------------------------*/
  76.  
  77. .sidebar_zip_code_checker_success {
  78. border:3px solid green;
  79. color: green !important;
  80. text-transform: uppercase;
  81. font-style: bold;
  82. font-size: 17px;
  83. padding: 7px;
  84. }
  85.  
  86. .sidebar_zip_code_checker_error {
  87. border:3px solid red;
  88. color: red !important;
  89. text-transform: uppercase;
  90. font-style: bold;
  91. font-size: 17px;
  92. padding: 7px;
  93. display:inline-block;
  94. width:100%;
  95. }
  96.  
  97. widgettitle {
  98. .display:none;
  99. }
  100.  
  101. #zip_code {
  102. border-radius:15px;
  103. text-align:center;
  104. }
  105.  
  106. .footerstillhere {
  107. display:none !important;
  108. }
  109.  
  110. .yellowhandwritingfooter {
  111. display:none !important;
  112. }
  113.  
  114. .row .cart-bottom-details {
  115. margin-bottom:0 !important;
  116.  
  117. }
  118.  
  119.  
  120. .sidebar_zip_code_checker_error {
  121. color:black;
  122. }
  123.  
  124. .sidebar_zip_code_checker_success {
  125. color:black;
  126. }
  127.  
  128. input {
  129. color:black;
  130. }
  131.  
  132. #wp_sidebarzipcodechecker-2 {
  133. text-align:center;
  134. }
  135.  
  136.  
  137. .sidebar_zip_code_checker_success {
  138. width:100%;
  139. }
  140.  
  141. #wp_sidebarzipcodechecker-2 > p {
  142. text-align:center;
  143. }
  144.  
  145.  
  146. #wp-submit {
  147. font-size:14px;
  148. width:100%;
  149. padding: 10px 16px;
  150. }
  151.  
  152. .sidebar_zip_code_checker_success { display: none; }
  153. .sidebar_zip_code_checker_success ~ .sidebar_zip_code_checker_success { display: inline-block; }
  154.  
  155. #checkoutZipcode {
  156. display:none;
  157. }
  158.  
  159. input[name="apply_coupon"] {
  160. color:white !important;
  161. }
Add Comment
Please, Sign In to add comment