Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. <?php echo apply_filters( 'woocommerce_order_button_html', '<input type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '" />' ); ?>
  2.  
  3. <?php if ( wc_get_page_id( 'terms' ) > 0 && apply_filters( 'woocommerce_checkout_show_terms', true ) ) : ?>
  4. <p class="form-row terms">
  5. <label for="terms" class="checkbox"><?php printf( __( 'I&rsquo;ve read and accept the <a href="%s" target="_blank">terms & conditions</a>', 'yit' ), esc_url( get_permalink( wc_get_page_id( 'terms' ) ) ) ); ?></label>
  6. <input type="checkbox" class="input-checkbox" name="terms" <?php checked( apply_filters( 'woocommerce_terms_is_checked_default', isset( $_POST['terms'] ) ), true ); ?> id="terms" />
  7. </p>
  8. <p class="subscribe">
  9. Subscribe to get discounts, coupons and tips
  10. <?php include "/home/edcthings/public_html/wp-content/plugins/yith-essential-kit-for-woocommerce-1/modules/yith-woocommerce-mailchimp/templates/mailchimp-subscription-checkbox.php" ?>
  11. </p>
  12. <?php endif; ?>
  13.  
  14. <?php do_action( 'woocommerce_review_order_after_submit' ); ?>
  15.  
  16. </div>
  17.  
  18. <div class="clear"></div>
  19.  
  20. $(function(){
  21. $(".button").click(function () {
  22. $(".button").attr("disabled", true);
  23. $('#cart-table').submit();
  24. });
  25. });
  26.  
  27. <script type="text/javascript" charset="utf-8">
  28. jQuery(document).ready(function($){
  29. $(".button").click(function () {
  30. $(".button").attr("disabled", true);
  31. $('#checkout').submit();
  32. });
  33. });
  34. </script>
  35.  
  36. <script type="text/javascript" charset="utf-8">
  37. jQuery(document).ready(function($){
  38. $(".button#place_order").click(function () {
  39. $(".button#place_order").attr("disabled", true);
  40. $('.checkout').submit();
  41. });
  42. });
  43. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement