Cashback only when order paid with the wallet
-
If an order comprises products of a category for which cashback has been set, then the wallet receives cashback even if the client does not use the wallet as payment method. How can I limit cashback to when the payement is done with the wallet?
I have seen you have a filter woo_wallet_form_cart_cashback_amount which potentially could be used, but it only provides the amount as parameter (class-woo-wallet-cashback.php line 127).
I thought that maybe the filter woo_wallet_form_order_cashback_amount (line 177 same file) could be used since it provides the order_id? I tried but it didn’t sem to fire
Please advice
- The topic ‘Cashback only when order paid with the wallet’ is closed to new replies.