What is the hook for applying a credit / balance to cart total
-
Wonder if someone could help me with this issue.
I am doing a custom project. On checkout page, we need to apply a user account balance against cart total. For example:
Cart total (after tax & everything else) is $100, user has an account balance $50. We need to apply the balance to the cart total. So customer needs to pay $50 only.
I am trying to use “woocommerce_cart_calculate_fees” hook. However, this hook is applied before tax is calculated. No matter how I change the priority value in the hook, the balance is always applied before tax calculation.
Any hint? Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘What is the hook for applying a credit / balance to cart total’ is closed to new replies.