Feature request
-
Can you add a setting for the bulk edit form to have all checkboxes ckecked when it is loaded.
Also make a setting that makes it possible to have a default set in the dropdown of the bulk edit form.
This makes it easier to work with and reduces the amount of clicks needed when using the form.
-
Can you also add the product sku number in a column before the title?
I would also like to be able to sort the list by as ordered, sku and a location in the warehouse. I have a custom meta_key for the location in the warehouse.
Is there a hook or filter I can use to add it?Is it possible to add
$(“.wxp-order-shipment-table input:checkbox”).prop(“checked”, true);
$(“.wxp_partial_ship_bulk_action”).val(‘shipped’);
to the admin-scripts.js file(as row 68,69)?
The code checks all the checkboxes and selects Mark as shipped as default.
Maybe you could add it as a setting?The suggestion comes from the workers at our warehouse and it would reduce the amount of clicks they have to make each day.
Hi @alijens , i’m working on new version of the plugin that will come with many other options and settings, so please wait for 3-4 weeks.
hopefully that will come soon.Thanks
Hi,
To add Sku in the list of items you can add
$postId = wc_get_order_item_meta($item[‘item_id’], ‘_product_id’, true);
$sku = get_post_meta($postId, ‘_sku’, true);
$products[] = array(
‘id’ => $item[‘item_id’],
‘sku’ => $sku,
‘name’ => $item[‘name’],
‘virtual’ => is_a($product, ‘WC_Product’) ? $product->is_virtual() : false,
‘qty’ => $item[‘qty’],
‘shipped’ => $item[‘shipped’],
‘order_id’ => $item[‘order_id’]
);Add it in woocommerce-partial-shipment.php at row 248
Update the admin-scripts.js file like this from row 27
var html=''; html = '<div class="wxp-order-shipment-table wrap"><table class="widefat" cellspacing="0">\ <thead><tr>\ <th class="manage-column column-cb check-column" scope="col"><input type="checkbox" name="wpx-check-top" class="wpx-check-top"></th>\ <th class="manage-column" scope="col">SKU</th>\ <th class="manage-column" scope="col">'+wxp_partial_ship.wxp_title+'</th>\ <th class="manage-column txt-ctr" scope="col">'+wxp_partial_ship.wxp_qty+'</th>\ <th class="manage-column txt-ctr" scope="col">'+wxp_partial_ship.wxp_ship+'</th>\ </tr></thead>\ <tbody>'; for(var i=0;i<data.products.length;i++){ html+='<tr class="alternate">\ <td class="column-cb check-column"><input type="checkbox" class="wxp-shipment-item-check" name="wxp-order-item['+data.products[i].id+']"></td>\ <td class="txt-ltr">'+data.products[i].sku+'</td>\ <td class="txt-ltr">'+data.products[i].name+'</td>\ <td class="txt-ctr">'+data.products[i].qty+'</td>'; if(data.products[i].virtual){ html+='<td class="txt-ctr"><input data-item-id="'+data.products[i].id+'" data-order-id="'+data.products[i].order_id+'" class="wxp-order-item-shipped" type="number" min="0" max="'+data.products[i].qty+'" step="1" value="'+data.products[i].qty+'" readonly></td>'; } else { var shipped = data.init ? data.products[i].shipped : data.products[i].qty; html+='<td class="txt-ctr"><input data-item-id="'+data.products[i].id+'" data-order-id="'+data.products[i].order_id+'" class="wxp-order-item-shipped" type="number" min="0" max="'+data.products[i].qty+'" step="1" value="'+shipped+'"></td>'; } html+='</tr>'; } html+='</tbody>\and you will get the SKU after the checkbox but before the description.
Hi @alijens , please check the advanced version of Partial Shipment for woocommerce here, if it’s useful for you.
Thanks
-
This reply was modified 4 years ago by
Vikram S..
-
This reply was modified 4 years ago by
The topic ‘Feature request’ is closed to new replies.