How to Add Customer Specific Pricing in WooCommerce

One of every store owner’s top priorities is ensuring customer loyalty. When compared to the difficulties of getting a new customer, a loyal customer is more advantageous to a store’s financial prospects. Therefore, store owners would also want to experiment with methods for keeping their current customer. The cost of a store is typically a deciding factor for customers in most markets. So it makes sense that businesses constantly experiment with pricing. You have a number of methods to do that if you are using the WooCommerce ecosystem. In this article, let’s look at the methods of adding customer specific pricing on WooCommerce. 

Add Custom Specific Pricing in WooCommerce – Methods

There are two basic methods to add custom specific pricing in WooCommerce. 

  1. WooCommerce Customer Specific Pricing by Addify
  2. Add Custom Specific Pricing in WooCommerce Programmatically

Method #1: WooCommerce Customer Specific Pricing by Addify

Anyone wishing to raise or lower rates for specific customers and user roles may find the WooCommerce Customer Specific Pricing Plugin to be helpful. To offset additional costs, give discounts to VIP groups or raise prices for any customer or user role by a fixed amount or a percentage.

Installation

  1. To install this plugin, search the .zip file from your WooCommerce account and start the download.
  2. On the WordPress Admin Panel, go to Plugins and choose Add New. Upload your plugin here by choosing the downloaded file.
  3. Click on Install Now and then Activate.

Setup and Configuration

As you activate the plugin, you can view the “Customer Specific Pricing” section under the WooCommerce admin panel.

Set Price as per Customer or Role

WooCommerce Customer Specific Pricing plugin helps users to set different prices for different customers and user roles. Based on Pricing Priority, you can adjust price type to:

  • Fixed price
  • Percentage discount
  • Percentage increase

The plugin also allows rule-based management to:

  • Adjust value
  • Limit the minimum and maximum quantity
  • Provide start and end date
Customer specific pricing for woocommerce

Create Rules to Adjust Price for Products & Categories

The WooCommerce Customer Specific Pricing plugin makes it simple to establish multiple rules. For specific customers and user roles, you can adjust price in bulk for multiple products and categories.

Customer specific pricing for woocommerce

Add a New Rule

Using this plugin, you can add a new rule based on your requirements. Select a price type specific to a customer or user role and set rules to proceed. Select products and customers and apply price adjustments. 

Customer specific pricing for woocommerce

Display Tiered Pricing

With the help of this plugin, you can define the maximum and minimum quantities that a customer can order while still paying the price you’ve established. 

At the frontend, the new special price has been displayed for specific customer or user roles.

Customer specific pricing for woocommerce

Method #2: Add Custom Specific Pricing in WooCommerce Programmatically

Let’s take a look at the program-based implementation of WooCommerce Customer Specific Pricing. 

// Change price display on page

add_filter( 'woocommerce_get_price_html', 'addify_change_price_html', 9999, 2 );

function addify_change_price_html( $price_html, $product ) {

    $current_role = is_user_logged_in() ? current( wp_get_current_user() ) ? 'guest';

    //Apply discount for customer and guest users

    $discount_roles = array('customer', 'guest');

    if ( '' === $product->get_price() ) return $price_html;

    // Show formatted discount

    if ( in_array( $current_role, $discount_roles ) ) {

        $regular_price = wc_get_price_to_display( $product, array('price'=>$product->get_regular_price() ) );

        $active_price  = wc_get_price_to_display( $product, array('price'=>$product->get_price() ) );

        return wc_format_sale_price( wc_price( $regular_price ), wc_price( $active_price ) ) . $product->get_price_suffix();

    }

    return $price_html;

}

// change price of product

add_filter( 'woocommerce_product_get_price', 'addify_change_price_of_product', 9999, 2 );

function addify_change_price_of_product( $price, $product ) {

    $current_role = is_user_logged_in() ? current( wp_get_current_user() ) ? 'guest';

    //Apply discount for customer and guest users

    $discount_roles = array('customer', 'guest');

    if( empty( $price ) ) {

        return $price;

    }

    // apply 50% discount

    if ( in_array( $current_role, $discount_roles ) ) {

        $regular_price    = $product->get_regular_price();

        $discounted price = $regular_price - ( $regular_price * 50 / 100 );

        return $discounted price;

    }

    return $price;

}

Final Note

We hope this article has given you the necessary information to assist you in the successful implementation and configuration of WooCommerce Customer Specific Pricing plugin. If you come across any further queries regarding the plugin, get in touch with our responsive support team.

Avail The Oppurtunity

Subscribe to Our Updates and Newsletters.