• Hello,

    we are planning to open a B2B online store also for B2C users.

    I searched the web for Plugins or Snippets to show both prices (with and without taxes), but didn’t get it to work.

    Is there really no readily usable solution for this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • For this functionality you can use ‘WC Role Based Price’ plugin.With the help of this plugin you can simply assign different price for B2B and B2C customer.

    With the help of hook you can implement same thing.
    add_action( ‘woocommerce_get_price’, ‘gowp_display_role_price’, 10, 2 );
    function gowp_display_role_price( $price, $product ) {

    // we don’t want to modify prices in the admin dashboard
    if ( is_admin() ) return $price;

    // we’ll let Dynamic Pricing do its own thing on the cart
    if ( is_cart() ) return $price;

    // does the product have any pricing rules defined?
    ———————————————-
    ———————————————-
    // does the product have any pricing rules defined?
    return $price;
    }

    Thread Starter Apfelbiss

    (@apfelbiss)

    Hello,

    thank your for your response.

    We want to show both prices at the same time or maybe with a simple switch.
    But most important, this functionality has to be usable for every visitor without the need of getting an account and without login.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘B2B+B2C: Show prices with and without taxes?’ is closed to new replies.