WooCommerce - excelling eCommerce
Change whether prices include tax, based on user role? (1 post)

  1. dgreenFF
    Posted 2 years ago #


    I'm working on a Woo build that has a slightly non-standard set-up to cater for wholesale requirements. We're using a couple of commercial plugins for some other functionality such as being able to add a wholesale price for each product etc, but VAT is a problem.

    The client wants the retail customers to be able to see prices including VAT, which is fine as we can control this via the settings.

    However we need the wholesale buyers - that is users who are logged in and have been assigned the 'wholesale_buyer' role/capability to see prices excluding VAT.

    From what I can see, WooCommerce is just doing...

    get_option( 'woocommerce_prices_include_tax' )

    ...in order to determine whether to include it or not, which makes it difficult to get around.

    Is there a way to do this without hard coding a solution into the plugin, perhaps by way of a filter etc?



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic