Bulk
This commit is contained in:
parent
1534ca50ff
commit
ca6a204b21
|
@ -414,9 +414,6 @@ function woocommerce_order_items_meta_box( $post ) {
|
||||||
<option value="reduce_stock"><?php _e( 'Reduce Line Stock', 'woocommerce' ); ?></option>
|
<option value="reduce_stock"><?php _e( 'Reduce Line Stock', 'woocommerce' ); ?></option>
|
||||||
<option value="increase_stock"><?php _e( 'Increase Line Stock', 'woocommerce' ); ?></option>
|
<option value="increase_stock"><?php _e( 'Increase Line Stock', 'woocommerce' ); ?></option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup label="<?php _e( 'Fees', 'woocommerce' ); ?>"></option>
|
|
||||||
<option value="add_fee"><?php _e( 'Add Fee', 'woocommerce' ); ?></option>
|
|
||||||
</optgroup>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<button type="button" class="button do_bulk_action"><?php _e( 'Apply', 'woocommerce' ); ?></button>
|
<button type="button" class="button do_bulk_action"><?php _e( 'Apply', 'woocommerce' ); ?></button>
|
||||||
|
@ -426,6 +423,7 @@ function woocommerce_order_items_meta_box( $post ) {
|
||||||
<select id="add_item_id" class="ajax_chosen_select_products_and_variations" multiple="multiple" data-placeholder="<?php _e( 'Search for a product…', 'woocommerce' ); ?>" style="width: 400px"></select>
|
<select id="add_item_id" class="ajax_chosen_select_products_and_variations" multiple="multiple" data-placeholder="<?php _e( 'Search for a product…', 'woocommerce' ); ?>" style="width: 400px"></select>
|
||||||
|
|
||||||
<button type="button" class="button add_order_item"><?php _e( 'Add item(s)', 'woocommerce' ); ?></button>
|
<button type="button" class="button add_order_item"><?php _e( 'Add item(s)', 'woocommerce' ); ?></button>
|
||||||
|
<button type="button" class="button add_order_fee"><?php _e( 'Add fee', 'woocommerce' ); ?></button>
|
||||||
</p>
|
</p>
|
||||||
<p class="buttons buttons-alt">
|
<p class="buttons buttons-alt">
|
||||||
<button type="button" class="button calc_line_taxes"><?php _e( 'Calc line tax ↑', 'woocommerce' ); ?></button>
|
<button type="button" class="button calc_line_taxes"><?php _e( 'Calc line tax ↑', 'woocommerce' ); ?></button>
|
||||||
|
|
|
@ -538,7 +538,7 @@ jQuery( function($){
|
||||||
|
|
||||||
$(selected_rows).each( function() {
|
$(selected_rows).each( function() {
|
||||||
|
|
||||||
var $item = $(this).closest('tr.item');
|
var $item = $(this).closest('tr.item, tr.fee');
|
||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
order_item_id: $item.attr( 'data-order_item_id' ),
|
order_item_id: $item.attr( 'data-order_item_id' ),
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue