jlv4567
Forum Replies Created
-
Got it updated and that fixed the problem. Thanks for the help!
Hmm I think I got a little confused there. We have:
WCFM – WooCommerce Frontend Manager – Version 6.4.0
WCFM – WooCommerce Frontend Manager – Ultimate – Version 6.3.2So we’re using WCFM 6.4.0, but the “Ultimate” still says 6.3.2. Ultimate is just a license though so maybe that doesn’t matter? I’ll try to update WCFM to 6.4.2 or later, and see if that fixes it.
Hi WC Lovers,
We do have a license for WCFM Ultimate, but there’s no trashcan button on our vendor dashboards. We’re using version 6.3.2 at the moment which should have the bulk delete. Is there a place it needs to be activated or any extra step that needs to be taken?
Cheers
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Create new billings columnHi, this little bit of code you gave above to use “Order Line Total (- Refund)” actually doesn’t seem to be getting the correct amount. I’ve got a line that has a item price of 500 and a refund of 505 and the “net billings” column we created shows as 500, but it should be -5. So it isn’t getting the right calculation.
I tried to look in to it and this bit seems to always return 0 even if there is a refunded amount:
$order->get_qty_refunded_for_item( $item->get_id())I tried switching to using
get_qty_refunded_for_itembut it still gets the 0.I think the problem may be that we are using the ‘Order Refund Amount’ under totals, and not the ‘Order Line Total Refunded’ under Products.
The code for finding the static value works great though! Thank you for that!
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Create new billings columnFollow up question. How can I take the net_billings we just created and multiply it by a static field?
I have a static field that’s a commission percentage that I’d like to multiply the net billings with. I can see that the static field is called “static_field_2”, but searching the forums didn’t reveal a way to access it.
Here’s what I got with a hard coded .6, but I’d like to just grab that value from the static field.
add_filter('woe_get_order_product_value_commission_amount', function ($value, $order, $item, $product, $item_meta) { return ($item->get_subtotal() - $order->get_qty_refunded_for_item( $item->get_id())) * .6; }, 10, 5);Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Create new billings columnAwesome. Thank you!
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Create new billings columnGah! That does it! I was told it didn’t exist so had to add it manually. Sorry!
Thank you so much for the awesome help and response! You’re amazing!
- This reply was modified 6 years, 4 months ago by jlv4567.
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Create new billings columnSorry it’s actually “net billings” but it should basically be the quantity of the item * the item_price – any amount refunded.
So:
(qty * item_price) - order_refundTo give a net total that was billed. I can’t get it to show this net total for each row and item id though.