Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author algol.plus

    (@algolplus)

    Just use field “Order ID”.

    I think field “Order Number” will show parent id

    Thread Starter tuijatuulia

    (@adalminanet)

    Oh, great, thank you, I will test this!
    In my first test I saw shipping cost on every product row – should it be like this? maybe I should remove product info..?

    Thread Starter tuijatuulia

    (@adalminanet)

    I have to say I was very impressed by the ease of taking the plugin to use – I was able to run reports in a couple of minutes. Is there a trick to get some ID that is in the order, linked to another table, like a lookup or something? I am thinking vendor name or other info.

    Plugin Author algol.plus

    (@algolplus)

    Hello

    it seems I already have code for dokan sellers.

    please, follow to https://docs.algolplus.com/algol_order_export/add-calculated-field-for-product/

    You can use meta keys
    dokan_store_name
    dokan_phone
    dokan_address_street_1
    dokan_address_street_2
    dokan_address_city
    dokan_address_state
    dokan_address_zip
    dokan_address_country

    and you must add following php code to section “Misc Settings”.
    thanks, Alex

    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);
    Plugin Author algol.plus

    (@algolplus)

    In my first test I saw shipping cost on every product row – should it be like this?

    please, open Setup Fields and set “Fill order columns for” = “1st row only”

    Thread Starter tuijatuulia

    (@adalminanet)

    Thanks, and please a bit more details on where can I find the Fill order columns for -setting? I did not find any settings with “Fill” word in it..

    Thread Starter tuijatuulia

    (@adalminanet)

    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?

    Plugin Author algol.plus

    (@algolplus)

    please, open section Setup Fields and set “Fill order columns for” = “1st row only”

    You don’t need 2nd code .
    Please, upload your settings as new ticket https://algolplus.freshdesk.com/
    Visit tab Tools to get them

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can you report sub order id’s?’ is closed to new replies.