Title: getting subtotal and programmatically changing it
Last modified: January 4, 2017

---

# getting subtotal and programmatically changing it

 *  [helefa](https://wordpress.org/support/users/helefa/)
 * (@helefa)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/getting-subtotal-and-programmatically-changing-it/)
 * I’ve tried using coupons and different plugins to achieve this but haven’t found
   any. I’m looking to change the total to pay based on a range of subtotals. For
   example,
    If customer buys between $5 – $275, I want them to pay only $125 For
   orders between $275 and $650, I want them to pay only $250 etc. I guess at this
   point I’m looking to catch the subtotal before checkout and automatically reduce
   it to the desired amount. Because I want a fixed total, I can’t do it through
   a coupon, unless I define all the different subtotal combinations and give each
   one its own form of discount. That would be very time consuming. Can anyone help
   me or give me an idea to point me in the right direction? thanks

Viewing 1 replies (of 1 total)

 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/getting-subtotal-and-programmatically-changing-it/#post-8620726)
 * Haven’t seen anything in the plugin world that would cater for this; You’d likely
   need to get in touch with a web developer to custom-develop that for you.

Viewing 1 replies (of 1 total)

The topic ‘getting subtotal and programmatically changing it’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/getting-subtotal-and-programmatically-changing-it/#post-8620726)
 * Status: not resolved