Support » Plugin: WooCommerce » May I ask which hook/filter to use if I want to modify the total?

  • 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.

    http://wordpress.org/extend/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘May I ask which hook/filter to use if I want to modify the total?’ is closed to new replies.