• Hi, I was able to add fee to my .xml export file with the help of Other items – Add fee settings. It works well, but it is only value (price) and I am not sure how to add also fee name?

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

    (@algolplus)

    hi

    please, visit https://docs.algolplus.com/algol_order_export/add-product-rows/

    copy 3rd code

    go back to export and add code to section “Misc Settings”

    Thanks, Alex

    Thread Starter pavelevap

    (@pavelevap)

    Thank you, so there is probably no GUI for fees?

    I was able to easily add fee in “Other items” – “Add fee”, but it is only one value (price) and it is not possible to add name or tax class?

    It will have to be handled by custom code, I was thinking something like this (to list all fees related to order and keep them outside of products).

      <Fees>
        <Fee>
          <Fee_Name>Name</Fee_Name>
          <Fee_Qty>1</Fee_Qty>
          <Fee_Price>20</Fee_Price>
        </Fee>
      </Fees>
    Plugin Author algol.plus

    (@algolplus)

    hi

    Nested XML structure requires a bit of programming.

    Please, visit https://docs.algolplus.com/algol_order_export/sample-addons/
    Download and install XML plugin ( via >Plugins>Add New>Upload)
    Go back to export – you should mark checkbox at bottom (just above buttons)
    Use FileZilla to edit file /wp-content/plugins/woe-custom-xml/woe-custom-xml.php

    Existing code has loop for adding products,
    you should use same way to add fees

    foreach($order-> get_items('fee') as $item_id => $item) {
    }

    thanks, Alex

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding fees to export file’ is closed to new replies.