removed some order totals old stuff
This commit is contained in:
parent
144d094ad2
commit
098919f469
File diff suppressed because one or more lines are too long
|
@ -947,204 +947,6 @@ ul.wc_coupon_list_block {
|
|||
}
|
||||
}
|
||||
}
|
||||
#poststuff #woocommerce-order-totals {
|
||||
.inside {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
h4 {
|
||||
margin:0 !important;
|
||||
a.add_tax_row, a.add_total_row {
|
||||
display: inline-block;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.inline_total {
|
||||
float: right;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
.totals_group {
|
||||
border-top: 1px solid white;
|
||||
border-bottom: 1px solid #DDD;
|
||||
padding: 10px 12px 0 12px;
|
||||
&:first-child {
|
||||
border-top:0;
|
||||
}
|
||||
input, select {
|
||||
width: 100%;
|
||||
vertical-align: top;
|
||||
margin: 0;
|
||||
font-weight: normal;
|
||||
line-height: 1em;
|
||||
}
|
||||
select {
|
||||
height: 30px !important;
|
||||
}
|
||||
input {
|
||||
padding: 4px 6px;
|
||||
}
|
||||
::-webkit-input-placeholder { line-height: 1.4em; }
|
||||
::-moz-placeholder { line-height: 1.4em; } /* firefox 19+ */
|
||||
:-ms-input-placeholder { line-height: 1.4em; } /* ie */
|
||||
input:-moz-placeholder { line-height: 1.4em; }
|
||||
#_order_total {
|
||||
margin: 6px 0 10px;
|
||||
}
|
||||
}
|
||||
.buttons {
|
||||
border-top: 1px solid white;
|
||||
padding: 1em 10px 1em 10px;
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
.calc_line_taxes {
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
ul.totals {
|
||||
margin: 6px 0 0;
|
||||
float: left;
|
||||
li {
|
||||
float: left;
|
||||
clear: both;
|
||||
width: 100%;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
line-height: 1.2em;
|
||||
margin: 0;
|
||||
padding: 0 0 10px;
|
||||
label {
|
||||
font-weight: normal;
|
||||
display: block;
|
||||
font-size: 0.8em;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
li.left {
|
||||
float: left;
|
||||
width: 49%;
|
||||
clear: left;
|
||||
input {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
li.right {
|
||||
float: right;
|
||||
width: 49%;
|
||||
clear: none;
|
||||
input {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
li.wide {
|
||||
float: left;
|
||||
width: 100%;
|
||||
clear: left;
|
||||
input {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.calculated {
|
||||
border-color: #ae8ca2;
|
||||
border-style: dotted;
|
||||
}
|
||||
}
|
||||
.total_rows {
|
||||
margin: 6px 0 0;
|
||||
.total_row:first-child {
|
||||
border-top:1px solid #dfdfdf;
|
||||
}
|
||||
.total_row:last-child {
|
||||
margin-bottom:9px;
|
||||
}
|
||||
}
|
||||
.total_row {
|
||||
margin:0 -12px;
|
||||
border-bottom:1px solid #DFDFDF;
|
||||
background: #fff;
|
||||
padding: 12px 12px 3px 12px;
|
||||
background:#f8f8f8;
|
||||
position: relative;
|
||||
p {
|
||||
margin:0 0 9px;
|
||||
}
|
||||
label {
|
||||
color:#999;
|
||||
display: block;
|
||||
margin: 0 0 3px;
|
||||
}
|
||||
p.first {
|
||||
float: left;
|
||||
width: 49%;
|
||||
clear: left;
|
||||
input, select {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
p.last {
|
||||
float: right;
|
||||
width: 49%;
|
||||
clear: none;
|
||||
input, select {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
p.wide {
|
||||
clear: both;
|
||||
input, select {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
a.delete_tax_row, a.delete_total_row {
|
||||
.ir;
|
||||
display:none;
|
||||
position: absolute;
|
||||
top:-.5em;
|
||||
right:-.5em;
|
||||
font-size:1.4em;
|
||||
&:before {
|
||||
.icon( "\e013" );
|
||||
color:white;
|
||||
background-color: #000;
|
||||
-webkit-border-radius:100%;
|
||||
border-radius:100%;
|
||||
box-shadow:0 1px 2px rgba(0,0,0,0.2);
|
||||
}
|
||||
&:hover:before {
|
||||
background-color: @red;
|
||||
}
|
||||
}
|
||||
&:hover, &:focus {
|
||||
a.delete_tax_row, a.delete_total_row {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
.refunds {
|
||||
margin: 6px 0 0;
|
||||
li.total_row {
|
||||
padding: 9px 12px 0;
|
||||
margin:0 -12px !important;
|
||||
&:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
.amount {
|
||||
font-weight: bold;
|
||||
margin-right: 1em;
|
||||
float: left;
|
||||
}
|
||||
.date {
|
||||
float: right;
|
||||
color: #999;
|
||||
}
|
||||
p {
|
||||
clear: both;
|
||||
padding: 0 0 9px;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#poststuff #woocommerce-order-notes {
|
||||
.inside {
|
||||
margin:0;
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
?>
|
||||
<div class="total_row tax_row" data-order_item_id="<?php echo $item_id; ?>">
|
||||
<p class="wide">
|
||||
<select name="order_taxes_rate_id[<?php echo $item_id ? $item_id : 'new][]'; ?>]">
|
||||
<optgroup label="<?php _e( 'Tax Rate', 'woocommerce' ); ?>">
|
||||
<option value=""><?php _e( 'N/A', 'woocommerce' ); ?></option>
|
||||
<?php foreach( $tax_codes as $tax_id => $tax_code ) : ?>
|
||||
<option value="<?php echo $tax_id; ?>" <?php selected( $tax_id, isset( $item['rate_id'] ) ? $item['rate_id'] : '' ); ?>><?php echo esc_html( urldecode( $tax_code ) ); ?></option>
|
||||
<?php endforeach; ?>
|
||||
</optgroup>
|
||||
</select>
|
||||
<input type="hidden" name="order_taxes_id[<?php echo $item_id ? $item_id : 'new][]'; ?>]" value="<?php echo esc_attr( $item_id ); ?>" />
|
||||
</p>
|
||||
<p class="first">
|
||||
<label><?php _e( 'Sales Tax', 'woocommerce' ) ?></label>
|
||||
<input type="text" class="order_taxes_amount wc_input_price" name="order_taxes_amount[<?php echo $item_id ? $item_id : 'new][]'; ?>]" placeholder="<?php echo wc_format_localized_price( 0 ); ?>" value="<?php if ( isset( $item['tax_amount'] ) ) echo esc_attr( wc_format_localized_price( $item['tax_amount'] ) ); ?>" />
|
||||
</p>
|
||||
<p class="last">
|
||||
<label><?php _e( 'Shipping Tax', 'woocommerce' ) ?></label>
|
||||
<input type="text" class="order_taxes_shipping_amount wc_input_price" name="order_taxes_shipping_amount[<?php echo $item_id ? $item_id : 'new][]'; ?>]" placeholder="<?php echo wc_format_localized_price( 0 ); ?>" value="<?php if ( isset( $item['shipping_tax_amount'] ) ) echo esc_attr( wc_format_localized_price( $item['shipping_tax_amount'] ) ); ?>" />
|
||||
</p>
|
||||
<a href="#" class="delete_total_row">×</a>
|
||||
<div class="clear"></div>
|
||||
</div>
|
Loading…
Reference in New Issue