Title: Price Labels
Last modified: August 24, 2016

---

# Price Labels

 *  Resolved [EntoMarket](https://wordpress.org/support/users/bugsfordinner/)
 * (@bugsfordinner)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/price-labels/)
 * The plugin works great!
 * I was wondering if there was a way to show price labels?
 * For example, I want the regular price to be labeled “MSRP:” and the wholesale
   price to be labeled “Wholesale:”
 * Thanks.
 * Bill
 * [https://wordpress.org/plugins/woocommerce-role-based-price/](https://wordpress.org/plugins/woocommerce-role-based-price/)

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

 *  [jshindler](https://wordpress.org/support/users/jshindler/)
 * (@jshindler)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/price-labels/#post-6111542)
 * Hey EntoMarket,
 * It is pretty easy add if you have a custom theme or access to your code. You 
   just need to retrieve the relevant price by changing the name of customer to 
   the role that you want to display.
 * `<strong>Customer price:</strong> <?php echo get_post_meta( get_the_ID(), '_regular_price_customer',
   true ); ?>`
 * Josh
 *  [L Croonquist](https://wordpress.org/support/users/webjedi/)
 * (@webjedi)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/price-labels/#post-6111670)
 * Hey there, that is an easy line that is for sure.
    Can I get a little more detail
   on where/how to add that ?
 * I also want to display regular price/wholesale price in the cart and on product
   pages.
 * I see the woocommerce product price function, in woocommerce.php and price.php
   but I suppose one would want to build a function that checks if they are a logged
   in wholesale user and if yes then show the price (of a non wholesale user).
 * I am just pretty scared to write that… any more elegant solutions to this ?
 * Thank you,
 * leif
 *  Plugin Author [Varun Sridharan](https://wordpress.org/support/users/varunms/)
 * (@varunms)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/price-labels/#post-6111671)
 * @LCRoonQuist
 * The code give by [@jshindler](https://wordpress.org/support/users/jshindler/)
   will not support for latest version..
 * for latest version kindly use the below code any where
 * **Get Product’s Regular Price For Customer**
 * `<strong>Customer Regular Price:</strong> <?php echo do_shortcode('[wc_rbp id
   ='99' role='customer' price='regular_price']');`
 * ** Get Product’s Selling Price Based On Logged In User **
    `<strong>Customer 
   Selling Price:</strong> <?php echo do_shortcode('[wc_rbp id='99' role='customer'
   price='selling_price']');`
 * ** Shortcode Variables Explained **
    -  `id=99` you need to replace the 99 with your simple/variable product id
    -  `role=customer` you need replace `customer` with your user role id / use 
      current to get loggedin user role
    -  price use `regular_price` or `selling_price` to get the value of each

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

The topic ‘Price Labels’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-role-based-price.svg)
 * [Role Based Price For WooCommerce](https://wordpress.org/plugins/woocommerce-role-based-price/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-role-based-price/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-role-based-price/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-role-based-price/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-role-based-price/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-role-based-price/reviews/)

## Tags

 * [wholesale](https://wordpress.org/support/topic-tag/wholesale/)

 * 3 replies
 * 4 participants
 * Last reply from: [Varun Sridharan](https://wordpress.org/support/users/varunms/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/price-labels/#post-6111671)
 * Status: resolved