• Resolved arthrnvrn

    (@arthrnvrn)


    Hey there,

    Anyway to make a same item with 2 quantities on two differents lines ?

    Thank you!

    • This topic was modified 4 years ago by arthrnvrn.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hello

    By steps
    visit page https://docs.algolplus.com/algol_order_export/add-product-rows/
    copy 1st code
    go back to export
    open section “Misc Settings”
    mark checkbox “Custom PHP code”
    paste PHP code

    thanks, Alex

    Thread Starter arthrnvrn

    (@arthrnvrn)

    You definitely rocks guys.

    Thanks!

    Plugin Author algol.plus

    (@algolplus)

    you’re welcome

    Thread Starter arthrnvrn

    (@arthrnvrn)

    Maybe I’m asking too much ??

    Is there a way, by duplicating theses lines to add a unique order identifier, for example the order 5841 is duplicated 3 times, the first one will be 5841-1, the second 5841-2.

    Thank you!

    Plugin Author algol.plus

    (@algolplus)

    Hello

    please, adapt this code

    add_filter("woe_fetch_order_data", function($rows) {
    $pos =1;
    foreach($rows as $k=>$row)
      $rows[$k]["order_number"] .= "-" .$pos++;
    return $rows;
    });
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Same item on two lines’ is closed to new replies.