• Resolved christer_f

    (@christer_f)


    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

    • This topic was modified 4 years ago by christer_f.
Viewing 1 replies (of 1 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    @christer_f You can use process_woo_wallet_general_cashback instead of woo_wallet_form_order_cashback_amount in this case.

Viewing 1 replies (of 1 total)
  • The topic ‘Cashback only when order paid with the wallet’ is closed to new replies.