Skip to content

Commit

Permalink
Delete form-billing.php
Browse files Browse the repository at this point in the history
  • Loading branch information
crftwrk committed Jun 29, 2023
1 parent 12e2a8c commit 1dd17b5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 117 deletions.
66 changes: 35 additions & 31 deletions scss/bootscore_woocommerce/_wc_checkout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,47 @@ WooCommerce Checkout
}


// Create account
p.create-account {
@extend .form-check;
margin-left: $form-check-input-width * 1.5 !important;
}

#createaccount {
@extend .form-check-input;
}

// Create account password icon
#account_password {
background-position: right $spacer * 2.25 center;
}


// /checkout/form-shipping.php
#ship-to-different-address {
@extend .form-check;
font-size: var(--#{$prefix}body-font-size);
font-weight: normal;
line-height: $line-height-base;
margin-bottom: $spacer;

label {
@extend .form-check-label;
}

input {
@extend .form-check-input;
}
}


// Order notes
.woocommerce form .form-row textarea {
height: $spacer *7;
@extend .form-control;
}


// #order_review
// Set shipping table to top
.woocommerce-shipping-totals th {
Expand Down Expand Up @@ -153,34 +188,3 @@ WooCommerce Checkout
cursor: pointer;
}
}





// /checkout/form-shipping.php
#ship-to-different-address {
@extend .form-check;
font-size: var(--#{$prefix}body-font-size);
font-weight: normal;
line-height: $line-height-base;
margin-bottom: $spacer;

label {
@extend .form-check-label;
}

input {
@extend .form-check-input;
}
}


// Order notes
#order_comments:focus {
box-shadow: $input-focus-box-shadow;
}

.woocommerce form .form-row textarea {
height: $spacer *7;
}
74 changes: 0 additions & 74 deletions woocommerce/checkout/form-billing.php

This file was deleted.

12 changes: 0 additions & 12 deletions woocommerce/wc-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,6 @@ function bs_woocommerce_breadcrumbs() {
// WooCommerce Breadcrumb End


// Bootstrap Billing forms
function iap_wc_bootstrap_form_field_args($args, $key, $value) {

$args['input_class'][] = 'form-control';

return $args;
}

add_filter('woocommerce_form_field_args', 'iap_wc_bootstrap_form_field_args', 10, 3);
// Bootstrap Billing forms End


// Ship to a different address closed by default
add_filter('woocommerce_ship_to_different_address_checked', '__return_false');
// Ship to a different address closed by default End
Expand Down

0 comments on commit 1dd17b5

Please sign in to comment.