Help in calculated field Price * Qty
-
Hello, i am trying to insert a code to multiply price per qty to show a subtotal of “Price*Qty” and another with “Qty*Units” and i am having some problem, i don’t know what i am doing wrong. Could some one help me out?
Here is my code:add_filter(‘woe_get_order_product_value_product’, function ($value, $order, $item, $product,$item_meta) {
return $item[‘qty’]*$item[‘cost’];
}, 10, 5);`I am getting a result of “0” in the spreadsheet
I added the field in the Products section.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Help in calculated field Price * Qty’ is closed to new replies.