Hi Alex,
Thanks for your reply. I have managed to add the line but no information appears in the fields (item tax rate, order line (w/o tax), order line tax)
I managed to get the “order line (w/o tax)” with the following:
} elseif ( $field == ‘line_no_tax’ ) {
$row[$field] = $item[‘line_total’];
(it shows “5” for “5”; not sure if this means it will not show decimals should there be any)
However the following does not work for “order line tax” (it shows “0”, when value should be “0.385”:
} elseif ( $field == ‘line_tax’ ) {
$row[$field] = $item[‘line_tax’];
I also tried these versions but then nothing comes back (empty cell):
} elseif ( $field == ‘line_no_tax’ ) {
$row[$field] = $item_meta[“_line_total”][0];
} elseif ( $field == ‘line_tax’ ) {
$row[$field] = $item_meta[“_line_tax”][0];
Lastly I also wanted to retrieve item tax rate but don’t know how to go about that; if you can help? otherwise in worst cases, i can calculate it if I manage to get tax amount.
Thanks in advance for your help.
Best,
michael