WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. alucard001
    Member
    Posted 1 year 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.

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

  2. Coen Jacobs
    Member
    Plugin Author

    Posted 1 year 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

About this Topic