WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dgreenFF
    Member
    Posted 9 months ago #

    Hello!

    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?

    Thanks!
    David

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

Reply

You must log in to post.

About this Plugin

About this Topic