Reply To: After discount coupon applied – the cashback amt still the same (should reduce)2019-12-03T13:58:42+05:30

Home Forums Core After discount coupon applied – the cashback amt still the same (should reduce) Reply To: After discount coupon applied – the cashback amt still the same (should reduce)

jdizzle
Participant
Post count: 12

asking this gets added so i don’t need to change the core files.
it’s in /class-woo-wallet-cashback.php

in both functions:

calculate_cashback_form_order
please change
$order->get_subtotal(‘edit’)
to
$order->get_total(‘edit’)

calculate_cashback_form_cart
please change
wc()->cart->get_subtotal(‘edit’)
to
wc()->cart->total