syled orders admin
This commit is contained in:
parent
4b8913f911
commit
793dce823c
|
@ -490,14 +490,14 @@ function woocommerce_remove_row_actions( $actions ) {
|
|||
|
||||
|
||||
/**
|
||||
* Order page views
|
||||
* Order page bulk actions
|
||||
**/
|
||||
add_filter( 'bulk_actions-edit-shop_order', 'woocommerce_bulk_actions' );
|
||||
|
||||
function woocommerce_bulk_actions( $actions ) {
|
||||
|
||||
if (isset($actions['edit'])) unset($actions['edit']);
|
||||
|
||||
|
||||
return $actions;
|
||||
}
|
||||
|
||||
|
@ -560,7 +560,7 @@ add_filter( 'request', 'woocommerce_orders_by_customer_query' );
|
|||
|
||||
function woocommerce_orders_by_customer_query( $vars ) {
|
||||
global $typenow, $wp_query;
|
||||
if ($typenow=='shop_order' && isset( $_GET['_customer_user'] )) :
|
||||
if ($typenow=='shop_order' && isset( $_GET['_customer_user'] ) && $_GET['_customer_user']>0) :
|
||||
|
||||
$vars['meta_key'] = '_customer_user';
|
||||
$vars['meta_value'] = (int) $_GET['_customer_user'];
|
||||
|
@ -626,4 +626,4 @@ function woocommerce_post_updated_messages( $messages ) {
|
|||
|
||||
endif;
|
||||
return $messages;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,15 +48,14 @@ dl.totals dd input.last{width:49%;float:right;}
|
|||
.widefat .column-order_title time{display:block;color:#999;margin:3px 0;}
|
||||
.widefat small.meta{display:block;color:#999;font-size:inherit;margin:3px 0;}
|
||||
.widefat .column-total_cost,.widefat .column-order_date{width:150px !important;}
|
||||
.widefat .column-order_status{width:80px;text-align:center;}.widefat .column-order_status mark{display:block;text-align:left;text-indent:-9999px;background:#fff;height:16px;width:16px;background:#fff;-webkit-box-shadow:inset 0 0 0 3px rgba(0, 0, 0, 0.1);-webkit-border-radius:20px;-moz-border-radius:20px;-o-border-radius:20px;border-radius:20px;margin:1px auto;font-size:9px;text-transform:uppercase;color:#fff;font-weight:bold;text-shadow:0 1px 0 rgba(0, 0, 0, 0.1);-webkit-transition:all ease-in-out 0.1s;}
|
||||
.widefat .column-order_status mark.pending{background:#E66F00;}
|
||||
.widefat .column-order_status mark.completed{background:green;}
|
||||
.widefat .column-order_status mark.onhold{background:red;}
|
||||
.widefat .column-order_status mark.cancelled{background:#dfdfdf;}
|
||||
.widefat .column-order_status mark.processing{background:#2184c2;}
|
||||
.widefat .column-order_status mark.on-hold{background:red;}
|
||||
.widefat .column-order_status mark.refunded{background:#ccc;}
|
||||
.widefat .column-order_status mark:hover{text-indent:0;width:auto;text-align:center;}
|
||||
.widefat .column-order_status{width:90px;text-align:center;}.widefat .column-order_status mark{display:block;text-align:center;white-space:nowrap;padding:0 2px;background:#fff;border:1px solid #fff;-webkit-box-shadow:inset 0 0 2px 1px rgba(255, 255, 255, 0.5);-webkit-border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;border-radius:4px;margin:0;font-size:9px;text-transform:uppercase;color:#fff;font-weight:bold;text-shadow:0 1px 0 rgba(0, 0, 0, 0.3);}
|
||||
.widefat .column-order_status mark.pending{background-color:#999;border-color:#999;}
|
||||
.widefat .column-order_status mark.completed{background-color:#a0658b;border-color:#a0658b;}
|
||||
.widefat .column-order_status mark.on-hold{background-color:#E66F00;border-color:#E66F00;}
|
||||
.widefat .column-order_status mark.failed{background-color:red;border-color:red;}
|
||||
.widefat .column-order_status mark.cancelled{background-color:#ccc;border-color:#ccc;}
|
||||
.widefat .column-order_status mark.processing{background-color:#2184c2;border-color:#2184c2;}
|
||||
.widefat .column-order_status mark.refunded{background-color:#ccc;border-color:#ccc;}
|
||||
ul.subsubsub li.pending a{color:#E66F00;}
|
||||
ul.subsubsub li.completed a{color:green;}
|
||||
ul.subsubsub li.onhold a{color:red;}
|
||||
|
|
|
@ -256,55 +256,54 @@ dl.totals {
|
|||
width:150px !important;
|
||||
}
|
||||
.column-order_status {
|
||||
width:80px;
|
||||
width:90px;
|
||||
text-align: center;
|
||||
|
||||
mark {
|
||||
display: block;
|
||||
text-align: left;
|
||||
text-indent: -9999px;
|
||||
display:block;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
padding: 0 2px;
|
||||
background: #fff;
|
||||
height:16px;
|
||||
width:16px;
|
||||
background: #fff;
|
||||
-webkit-box-shadow:inset 0 0 0 3px rgba(0,0,0,0.1);
|
||||
-webkit-border-radius:20px;
|
||||
-moz-border-radius:20px;
|
||||
-o-border-radius:20px;
|
||||
border-radius:20px;
|
||||
margin:1px auto;
|
||||
border: 1px solid #fff;
|
||||
-webkit-box-shadow:inset 0 0 2px 1px rgba(255,255,255,0.5);
|
||||
-webkit-border-radius:4px;
|
||||
-moz-border-radius:4px;
|
||||
-o-border-radius:4px;
|
||||
border-radius:4px;
|
||||
margin: 0;
|
||||
font-size:9px;
|
||||
text-transform: uppercase;
|
||||
color:#fff;
|
||||
font-weight: bold;
|
||||
text-shadow:0 1px 0 rgba(0,0,0,0.1);
|
||||
-webkit-transition: all ease-in-out .1s;
|
||||
text-shadow:0 1px 0 rgba(0,0,0,0.3);
|
||||
}
|
||||
mark.pending {
|
||||
background: #E66F00;
|
||||
background-color: #999;
|
||||
border-color: #999;
|
||||
}
|
||||
mark.completed {
|
||||
background: green;
|
||||
}
|
||||
mark.onhold {
|
||||
background: red;
|
||||
}
|
||||
mark.cancelled {
|
||||
background: #dfdfdf;
|
||||
}
|
||||
mark.processing {
|
||||
background: #2184c2;
|
||||
background-color: #a0658b;
|
||||
border-color: #a0658b;
|
||||
}
|
||||
mark.on-hold {
|
||||
background: red;
|
||||
background-color: #E66F00;
|
||||
border-color: #E66F00;
|
||||
}
|
||||
mark.failed {
|
||||
background-color: red;
|
||||
border-color: red;
|
||||
}
|
||||
mark.cancelled {
|
||||
background-color: #ccc;
|
||||
border-color: #ccc;
|
||||
}
|
||||
mark.processing {
|
||||
background-color: #2184c2;
|
||||
border-color: #2184c2;
|
||||
}
|
||||
mark.refunded {
|
||||
background: #ccc;
|
||||
}
|
||||
mark:hover {
|
||||
text-indent: 0;
|
||||
width:auto;
|
||||
text-align: center;
|
||||
background-color: #ccc;
|
||||
border-color: #ccc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue