I need the product price after calculation with other plugins. As an example, the regular price is 1.50 but een custom price plugin adds some fees so the product price is 2.50.
I want the product price on a invoice with code ($product_price) below, but i get 1.50. I want, 2.50. How do i get this?
$productnummer_id = $order->get_item_meta($item_id, '_product_id', true);
$_product = wc_get_product( $productnummer_id );
$product_price = $_product->get_price();
$old_product_price_META = $rekensom1;
$line_items[] = array(
'description' => $item_data['name'],
'units' => $order->get_item_meta($item_id, '_qty', true),
'amount_per_unit'=>array(
'value' => $product_price,
'currency'=> 'EUR'
),
'vat' => $tax,