Hi Alex,
Thank you for your answer, I have tried change your code for cod and its like this: but not sure how to do that with more than one product. should I repeat all for each one?
add_filter('woe_get_order_value_cod_super', function ($value,$order,$field) {
$get_order = wc_get_order( $order->id );
$items = $get_order->get_items();
foreach ( $items as $item ) {
if('2675' == $item->get_product_id()){
return $item->get_quantity();
}
}
},10, 3);
add_filter('woe_get_order_fields', function ($fields) {
//add to field list
$fields['cod_super'] = array( 'label' => 'Product Super', 'colname' => 'Product Super', 'checked' => 1 );
return $fields;
});