May I ask which hook/filter to use if I want to modify the total? (2 posts)

  1. alucard001
    Posted 3 years ago #

    I am in the progress of developing a plugin that will give additional discount based on cart total (before shipping and before tax). However, I am not sure whhich hook or filter I can use to modify it before submitting to payment gateways.

    Can you please tell me which hook/filter should I use?

    Thank you.


  2. Coen Jacobs
    Posted 3 years ago #

    Well, the most obvious filter is the woocommerce_order_amount_total filter which is located in the WC_Order class, get_total() method. If that's not what you're looking for, you need to be more specific of what you need.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic