So I added the new column for Store and used meta key dokan_store_name and then added this to Custom PHP setting..
add_filter( 'woe_fetch_order_product', function($row, $order, $item, $product, $item_meta ) {
$user_id = $product->post->post_author;
if($user_id) {
$data = get_user_meta($user_id,"dokan_profile_settings", true);
if( $data ) {
foreach($row as $k=>$v) {
if(preg_match("#^dokan_(.+)$#",$k,$m)) {
$d_key = $m[1];
if(preg_match("#^address_(.+)$#",$d_key,$m) )
$d_val = $data['address'][$m[1]];
else
$d_val = $data[$d_key];
$row[$k] = $d_val;
} // endif dokan key
}
}//endif $data
}
return $row;
},10,5);
add_filter('woe_get_order_product_value_{dokan_store_name}', function ($value, $order, $item, $product,$item_meta) {
$value = "text";
return $value;
}, 10, 5);
But did not get anything out.. maybe I’m missing something?