Hi @rokeyfx
You can add it there manually by editing that row (as any other meta value).
But if you want to be added automatically when a new order gets created, this would need custom development. In this case, I would kindly suggest you to find a developer to help you out with this customization.
Best Regards,
Salva.
How can get that custom meta from product id?
I know how to get custom meta using product id then show it to line meta on order edit page. but Atum does not save any meta on product so how to access it?
If you want to get any ATUM data from a product, you can do so like this:
$product = \Atum\Inc\Helpers::get_atum_product( $product_id );
$supplier_sku = $product->get_supplier_sku();
$purchase_price = $product->get_purchase_price();
...
I hope this helps.
Best Regards,
Salva.
How to get variation id or get supplier sku for variable product?
Hi @rokeyfx
The variable products don’t have ATUM fields. You have to get their list of variation IDs and do the same I mentioned previously for each variation.
Retrieving the list of variations is not related to ATUM as it’s part of WooCommerce core, but you can read the related documentation here:
https://woocommerce.github.io/code-reference/classes/WC-Product-Variable.html
Best Regards,
Salva.