Hi Andrea, thanks a for reply that what we try to do, but still it is not perfect solution.
Using https://forum.stockmanagementlabs.com/d/2198-hook-into-atum-export-to-modify-the-exported-rows
i could change a value of an existing column for Export Pro
function atum_export_add_calc_stock( $row, $params, $entity ) {
// Ensure that the export Entity is 'Products'.
if ( $entity instanceof AtumExport\KnownEntities\Entities\Products ) {
// Ensure all the needed fields are present and prevent updating the name of variations.
if ( ! empty( $row['ID'] ) ) {
if (isset($row['is_bom']) && $row['is_bom'] == '1' && isset($row['_stock']) ) {
$calc = AtumLevels\Inc\Helpers::get_committed_boms($row['ID']);
$row['calculated_stock'] = $row['_stock'] - $calc;
}
}
}
return $row;
}
add_filter( 'atum/export/atum_export_entity/export_row', 'atum_export_add_calc_stock', 10, 3 );
So it seems that helps for Export. But i have question offtopic (maybe it was discussed but could find in forum): instead of using existing column can i add a custom column to Export (without adding to WP)?
Thanks in advance,