Title: Tax Toggle
Last modified: August 31, 2016

---

# Tax Toggle

 *  Resolved [boriskamp1991](https://wordpress.org/support/users/boriskamp1991/)
 * (@boriskamp1991)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/tax-toggle/)
 * Hi guys!
 * Im aware of [this plugin](http://codecanyon.net/item/woocommerce-tax-toggle/7796887)(
   I have it) But it is overkill for what I would like.
 * What I would like, is a radio button in my header with `include tax` and `exclude
   tax`. [something like this](https://www.dropbox.com/s/vfet0wxusa2dtyz/Screenshot%202016-03-01%2021.49.24%282%29.png?dl=0)(
   in the grey header you see `inclusief BTW` & `exclusief BTW`.
 * I dont need AJAX or Javascript, a page reload is fine when the button is clicked.
   there has to be a pretty simple function I can activate once clicked since there
   is a core option to show prices inc. and exc. taxes
 * Thanks guys!
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/tax-toggle/#post-7126657)
 * Don’t know of anything off-hand. Might be easiest to get in touch with the developers
   of that plugin to hear if they’re got a simple shortcode that you can use (or
   function that you can include in your header).
 * In all likelihood though, you would need to get that custom developed…
 *  Thread Starter [boriskamp1991](https://wordpress.org/support/users/boriskamp1991/)
 * (@boriskamp1991)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/tax-toggle/#post-7126685)
 * The developers here need to know more right? very curious!
    Thanks for the answer!
 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/tax-toggle/#post-7126686)
 * Err… Not sure I’m following – what should the developers need to know more of?
 *  Thread Starter [boriskamp1991](https://wordpress.org/support/users/boriskamp1991/)
 * (@boriskamp1991)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/tax-toggle/#post-7126722)
 * Im sorry for not being clear enough.
 * What I meant is that the developers will probably know more what direction I 
   should go.
    very theoretically said, all I need is a radio button that toggles
   the **WooCommerce>setting>taxes>show prices in store** from **excluding taxes**
   to **including taxes** and vice versa right? that cant be to difficult
 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/tax-toggle/#post-7126725)
 * >  all I need is a radio button that toggles the WooCommerce>setting>taxes>show
   > prices in store from excluding taxes to including taxes and vice versa
 * This option is backend only and stored in woocommerce_tax_display_shop. The value
   is either excl or incl
 * When we get this option for usage, we use [https://codex.wordpress.org/Function_Reference/get_option](https://codex.wordpress.org/Function_Reference/get_option)
 * These options can be intercepted and changed:
    [https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_option_(option_name)](https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_option_(option_name))
 * So possible to change on the fly, yes.
 * > that cant be to difficult
 * >  there has to be a pretty simple function I can activate
 * ಠ_ಠ
 * Not quite. Because you need to track whether the user wants default, or the other
   option toggle.
 * So a plugin is needed which sets a cookie based on 2 links (show inc, show ex),
   and then this cookie can be used to filter the option before its retrieved.
 *  Thread Starter [boriskamp1991](https://wordpress.org/support/users/boriskamp1991/)
 * (@boriskamp1991)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/tax-toggle/#post-7126841)
 * Thanks for clearing that out Mike!
 * I was able to modify the plugin in such a way it works the way I want it to.
 *  [Kekkster](https://wordpress.org/support/users/kekkster/)
 * (@kekkster)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/tax-toggle/#post-7126874)
 * I have the same plugin and I also want radio instead. Could you share your solution
   boriskamp? Would be greatly appreciated! 🙂
 *  [pauldewin](https://wordpress.org/support/users/pauldewin/)
 * (@pauldewin)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/tax-toggle/#post-7126884)
 * Hi,
    I also bought the plugin (tax toggle), but it conflicts with another plugin(
   for role pricing) … I also just need a radio-button to switch incl. or excl VAT
   on the shop-page … If anybody has the solution (it cannot be difficult I think,(
   but I am not a programmer …) Can you help me boriskamp1991 ?
 *  [kallebystrom](https://wordpress.org/support/users/kallebystrom/)
 * (@kallebystrom)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/tax-toggle/#post-7126889)
 * [@boriskamp1991](https://wordpress.org/support/users/boriskamp1991/) [@kekkster](https://wordpress.org/support/users/kekkster/)
   [@pauldewin](https://wordpress.org/support/users/pauldewin/)
    boriskamp1991 Kekkster
   pauldewin
 * I also need what you needed. Can you please share your solutions with me and 
   the others out there? I’ve also bought the tax-toggle-plugin but it’s not enough
   for me.
 *  [Rocky638](https://wordpress.org/support/users/revereim/)
 * (@revereim)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/tax-toggle/#post-8321406)
 * Any more information on this one boriskamp1991?

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Tax Toggle’ 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/)

 * 10 replies
 * 7 participants
 * Last reply from: [Rocky638](https://wordpress.org/support/users/revereim/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/tax-toggle/#post-8321406)
 * Status: resolved