Support » Plugin: Advanced Order Export For WooCommerce » Export Also Order ID And Group Items By Order

  • Resolved enone

    (@enone)


    Hi Algol,
    I’ve Read And Try Many Snippet And Solutions In Trying To Add The Order ID Number On Every Row Of Exported Items But Without Success…

    For Example Adding This Code:
    =====================================
    // add product field “Item ID”
    add_filter(‘woe_get_order_product_fields’, function ($fields,$format) {
    $fields[‘item_id’] = array( ‘label’ => ‘Item ID’, ‘colname’ => ‘Item ID’, ‘checked’ => 1 );
    return $fields;
    }, 10, 2);

    // fill for products
    add_filter(‘woe_get_order_product_value_item_id’, function ($value,$order, $item, $product) {
    return $item->get_id();
    }, 10, 4);
    ================================

    The Result Is That Item ID Display The Item ID And Not The Order ID Number…
    I’m A Bit Lost 🙁

    It Will Be Better To Have A Dragable Object Called Order-ID So I Can Include This Column In The Exported File…

    Also It’s Possible To Group All Item Lines Together And Have One Row Space Between Next Order

    Thanks!

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

    (@algolplus)

    hello

    open section “Setup field” and drag field “Order ID” to left column.

    Please, open section “Misc Settings”, mark checkbox “Custom code” and paste following code to the textarea.
    thanks, Alex

    add_filter("woe_fetch_order_data", function($rows){
       $empty_row = array();
       foreach($rows[0] as $k=>$v)
          $empty_row[$k] = "";
       $rows[] = $empty_row;
       return $rows;
    });
    Thread Starter enone

    (@enone)

    Thanks For The Answer But As I Can Tell You There Is No “Order ID” Block To Drag…
    This Is What I See…

    https://ibb.co/RBjdgnr

    Plugin Author algol.plus

    (@algolplus)

    hi

    Please, uncheck “Summary Report By Products” (at top of the form)
    and you will see other fields.

    thanks, Alex

    Thread Starter enone

    (@enone)

    Great! Thanks For Your Suggestions… Now Is Way Better! But Now I’m Missing One Column… On Preview And On Exported Excel…

    https://ibb.co/5hZHndX

    As You Can See From Exported Excel The Columns Are Translated By 1 Column To The Left… It Will Be Nice To Have Empty Space Under Order ID For Variation Product Or Order ID Repeated To Fill The Column…

    Plugin Author algol.plus

    (@algolplus)

    please, open “CSV” and untick “Item rows start from new line”

    Thread Starter enone

    (@enone)

    Fantastic! Now Is Perfect You Deserve A Big Thank You!
    Awesome Algol+!! 😀

    Plugin Author algol.plus

    (@algolplus)

    you’re welcome

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Export Also Order ID And Group Items By Order’ is closed to new replies.