Posted on 58 Comments

Woocommerce Role Pricing PRO

According to the role that the visitor has, he will see a store with discount prices or not, so you can set direct discounts to subscribers, editors ….

You need:

Changelog

Version 2.4
  • Compatible with Woocommerce 2.6.3
  • Added the [wrp_show_discount] shortcode
  • Fixed multisite bug.
Verion 2.0
  • Discounts by products (now variables available)
  • Discounts by categories
  • If user has various roles, you can select the criterial (higher discount, lower discount, …)

Screenshots

wrp-product

wrp-view

wgp-settings

wrp-category

Download

58 thoughts on “Woocommerce Role Pricing PRO

  1. Hi, very interested in your plugin. Can i also apply Role Pricing to variations?

    1. Hi
      I am urgently need to decide on buying the plugin. Can you pls let me know if i will be able t apply the wholesale pricing to variations as well as simple products?
      Thanks

      1. Hi,
        sorry, right now it’s not possible to apply different discounts or variations (we are working in this feature).
        cheers

        1. Hi eggemplon
          Thank you for you pluggin !
          Have you got some news about the specific pricing variation for groups ? If you don’t, have you got any ideas when you will make it ?

          Cheers

          1. Hi,
            this feature is not yet available in Woocommerce Role Pricing (I hope to have it available this week).
            cheers

  2. Hi, i really need an answer about this plz 🙂

    1. Well, based upon this faulty information, I purchased it and found to my dismay that it does not work for variations.

      I’m rather irritated and there is no way for me to get a refund that I can see, so let this serve as a warning to all others…

      THIS PLUGIN DOES NOT WORK WITH PRODUCT VARIATIONS!

      There, that should be large and glaring enough. You said you hoped to have it in by the next week over 6 months ago. I figured I was safe in taking a chance. Apparently not. At least it was only 10 bucks. Without support for variations, this plugin is utterly useless to me.

      1. Refunded,
        we are working in an update that includes this feature besides other.
        Thanks

        1. Version 2.0 available !

  3. Hello,

    I have installed the free version of the plugin, and it is easy to set up and use. We would like to use it.

    Can you configure it to display the full price and the discounted price when the user with the role is logged in?

    Also, are you going to be supporting the plugin? Will it work with WordPress 4.1?

    Thanks.

    1. Hi,
      of course there is support 🙂
      This is compatible with wordpress 4.1, you can use ‘woocommerce_get_price_html’ filter, for example:
      add_filter( 'woocommerce_get_price_html', 'your_own_price_html', 100, 2 );
      function your_own_price_html( $price, $product ) {
      return 'Was:' . woocommerce_price(get_post_meta( $product->id, '_price', true )) . " Now:" . $price;
      }

      cheers

  4. When saving prices on a variable product it is saved to the database. The problem is, that price is not shown when I reload the product?

    I have linked three images:

    Image 1: shows the product and I set the reseller_buyer price @ 10.00
    Image 2: shows the database table correctly stores the 10.00 price
    Image 3: shows when I reload the product, it does not get the 10.00 price from the table.

    Looking at the code, woocommerce (2.3.7) $variation_data doesn’t seem to return the “role_pricing_value_” meta_keys your saving to.

    Please let me know if Im doing something wrong.

    Thanks,
    Mike

    1. Hi Mike,
      please download the new 2.0.1 version that fix this bug.
      Thank you very much for letting us know of this problem.
      Regards

      1. Thank you, that seems to have fixed the problem,. My last input would be to add a class hook to the table so it can be styled. Great plugin, thank you for your work on this and quick support.

        Example of my setup:
        Styled
        Default

  5. Hi there,

    Seeing as you reply here mostly to give some support.. i will try to ask my question here.

    I am pretty new in the wp/wc scene so im still finding stuff out such as hooks and other things.

    The problem is this, i was trying to add a extra line to show a price including tax beneeath the regular (excluding tax) price.
    I used this snippet:
    get_price_including_tax()); ?>

    And this seems to work just fine, however, when i activate the wc role pricing plugin this becomes zero and the discount is getting applied to the excl btw.
    Mind you, when i change the display from showing regular prices including or excluding tax it does show the correct prices but both the snippet as well as the little tags: {price_excluding_tax} and {price_including_tax} stop working and both show 0,00. Is there any way to fix this? Because this plugin is exactly what i need but i do need to have the possibilitie to show both prices.

    Thanks in advance.

    1. Hi Kevin,
      You can try:
      1.- Enable debugging for WordPress, in wp-config.php add/change these lines:
      define( ‘WP_DEBUG’, true );
      define( ‘WP_DEBUG_LOG’, true );
      2.- Visit the website that generate 0,00 as value.
      3. Disable debugging
      define( ‘WP_DEBUG’, false );
      define( ‘WP_DEBUG_LOG’, false );
      4. Please post the contents of the file wp-content/debug.log through pastebin.com
      thanks

      1. Thank you for replying.

        I have tried what you said but it simply does not generate any error.

        When i try to install Log Viewer plugin it will show me 2x errors about the log viewer plugin itself, but once i deactivate that the log generates no error and the .log does not even gets created if i remove the old one with the log viewer errors.

        woocommerce_price($product->get_price_including_tax());
        This is the line i am using at the moment, wich works perfectly with wc role pricing disabled. Once i reactivate it turns back to 0,00.

        Any idea even though the log does not generate anything?

        1. After checking some more, i noticed that when i remove the discount % in the plugin settings screen, the line of code for showing the price including tax starts working again, so i think it has something to do with calculating the tax amount.

          Let me give you an example of what happends:
          Official price is € 8.50 incl. tax. (sale price, down from € 9.50)
          When i discount it for 10% (0.1) at the “rate” setting, it becomes € 7.06 and shows € 0.00 on the incl. tax price.
          When i discount it for 10% (0.1) at the “amount” setting, it becomes € 7.77 and shows -€ 0.10 on the incl. tax price (yes, minus)

          So when i activate the plugin, it all works, as soon as i enter a discount on for example the administrator role, it starts going wrong.

          1. Hi Kevin,
            That’s very strange.
            Please send us dashboard admin access to info@eggemplo.com and I’ll have a look to settings.
            Regards

  6. Hi,
    I just purchased your plugin but have trouble to activate it. I am running WooCommerce 2.4.6 and WordPress 4.3

    When I try to activate the plugin, it states that it requires “woocommerce” to be activated, WooCommerce is activated though.

    Wondering if the camelcase format is an issue or it looks for woocommerce in a wrong directory ?

    Any help would be appreciated.

    Thanks,

    1. Hi Christian,
      please be sure your Woocommerce directory is ‘woocommerce’. Maybe this folder has another name.
      Kind regards,
      Antonio B.

      1. I got it to activate. I can see the role pricng fields in my products but when I update them and save the values the fields get cleared. Any idea what could cause this? I tried it on existing products and on new products, They are all variable products.

        1. Hi Christian,
          Ok, found the error (will be fixed in the next update). Please use the ‘Update’ button instead of ‘Save changes’ ( http://es.tinypic.com/view.php?pic=8w0g1c&s=8 ).
          Thanks for the feedback,
          Antonio B.

  7. Ciao, dove posso trovare la versione free del plugin così da testarlo? Grazie mille!

    1. Hi Roberto,
      you have the light version on wordpress: https://wordpress.org/plugins/woocommerce-role-pricing/
      Kind Regards,
      Antonio B.

  8. Hi,
    we have the light version installed and it works fantastic. I would like to show the regular price and the discount price.

    Can you please explain how this is done ?

    Thank you
    Craig

    1. Hi Laser Touch,
      you can use this code to show both prices:

      
      add_filter( 'woocommerce_get_price_html', 'your_own_price_html', 100, 2 );
      function your_own_price_html( $price, $product ){
      	return 'Was:' . woocommerce_price(get_post_meta( $product->id, '_price', true )) . " Now:" . $price;
      
      }
      

      Kind Regards,
      Antonio B.

      1. I Have another question
        Can you hide a product based on the user role ?

        Thanks

        1. Hi Craig,
          With Woocommerce Role Purchasable you can set a product purchasable or not according to the user’s role, but this plugin doesn’t hide the product.
          Really I don’t know a plugin to do it. You could use Groups to do it based on groups (not roles).
          Kind Regards,
          Antonio B.

      2. Hi, regarding to the question of lshrMarch and Laser Touch, about to show the regular price and the discount price, please help me where to put the code :

        add_filter( ‘woocommerce_get_price_html’, ‘your_own_price_html’, 100, 2 );
        function your_own_price_html( $price, $product ){
        return ‘Was:’ . woocommerce_price(get_post_meta( $product->id, ‘_price’, true )) . ” Now:” . $price;

        }

        thanks

        1. Hi Tondo,
          In the last version you have an option to display both prices, please download the last version from your account page.
          Kind Regards,
          Antonio B.

  9. Hi,

    is it possible with the Pro version to do the following thing: Role A has 5% discount on category A. Role B has discount of 10% on category A. Both roles have to pay full price for category C.

    So that each role can have a different price per category.

    1. Hi Damir,
      yes, you can apply discounts per categories and per roles, so you can have this scenario.
      Kind Regards,
      Antonio B.

      1. Thanks!

        It works for normal and variable products. But now I’m using WooThemes Product Bundles. And the Bundle product doesn’t get a discount. Is there a way to fix this?

        1. Hi Rick,
          right now both plugins are not compatible.
          Kind Regards,
          Antonio B.

      2. You don’t have to answer my previous question, I’m not using product bundles anymore.

        I do have another question though, is it possible to show the original price as well? So not just the discounted role price, but also the original one.

        1. Hi Rick,
          please have a look at this post relating to display both prices.
          Thanks,
          Antonio B.

  10. you have news about variables?

    1. Hi Gabriel,
      current version supports variable products, so you can set different discount per variation.
      Kind Regards,
      Antonio B.

  11. Hi, I am using the Pro Version, but it seems there are some problems with the latest WooCommerce version. Do you have any information about a compatible update of the plugin?

    Regards
    Christoph

    1. Hi Christoph,
      exactly what is the problem. We are working in an update that we hope to have available tomorrow.
      Kind Regards,
      Antonio B.

      1. Hello Antonio

        A big thank you for the updated version – solved all my problems.

        Best regards
        Christoph

        1. Perfect 😉
          Kind Regards,
          Antonio B.

  12. Hi,

    the plugin works great! Our client only wants to show the percentage discount. Is that possible? So not the original price, but only 23% discount, for example.

    1. Hi Damir,
      we are working in an update with shortcodes available to display the user’s discount.
      We hope to have it in a few days.
      Kind Regards,
      Antonio B.

  13. Hi
    We are using include VAT and exclude VAT when showing prices and when the Role log in, and the rate is set – some prices show “0 excluding VAT” etc. Not on all products, but some of them… Kind regards/ Karin

    1. Hi Karin,
      If you send me dashboard admin access to info@eggemplo.com indicating the products, I’ll have a look at your settings.
      Kind Regards,
      Antonio B.

  14. How do I upgrade to Pro?

    1. Hi Matt,
      simply remove the light version and install the pro version.
      Kind Regards,
      Antonio B.

  15. Hi There,

    Will this plug-in work with other custom user roles or just the ones that come with WooCommerce?

    For instance, the general public may be registered as Customer, but my organization members are in a group called Society (as I want them to have added permissions). I’d like the Society role to get a discount.

    1. Hi Ellice,
      the plugin uses all the roles created on the system. So if you have new roles created, it should work with all your roles.
      Kind Regards,
      Antonio B.

  16. Hi Antonio, It looks like the Role Pricing plugin does not work anymore with WooCommerce 2.5.5. When activating the plugin it says: “The Woocommerce Role Pricing plugin requires the Woocommerce plugin to be activated.” WooCommerce is already activated. I did download the latest version from your site (2.3), but still problems. My WordPress install also says the 2.3 version of de Role Pricing plugin is version 2.2. Any ideas?

    1. Hi Leo,
      please check if your woocommerce folder is ‘woocommerce’. The plugin checks the folder name.
      Kind Regards,
      Antonio B.

      1. Hi Antonio, thanks for your comment. The folder is ‘woocommerce’. So that is not the issue. De WP install is a multisite environment. Can that be the issue? WooCommerce is activated per site (not on network level).

        1. Hi Leo,
          that’s the problem, thanks.
          The new 2.4 version solves this problem. You can download this from your downloads page.
          Thanks for the feedback,
          Antonio B.

          1. Antonio, it was still not working after the update, so Leo asked me (colleague at support department) to have a look at it. It seems WooCommerce is not in the site options `active_sitewide_plugins`, even not after reactivating the plugin.

            I’ve now changed the check in `woo-role-pricing.php` to the following (based on http://queryloop.com/detect-wordpress-plugin-is-active/), which seems to work fine – the plugin is now activated again.

            “`
            public static function wp_init() {
            include_once( ABSPATH . ‘wp-admin/includes/plugin.php’ );

            if ( ! is_plugin_active( ‘woocommerce/woocommerce.php’ ) ) {
            […]
            “`

          2. Hi Reüel,
            please download the latest version from your account page.
            Thanks for the feedback and suggestion.
            Kind Regards,
            Antonio B.

          3. Thank you Antonio, it’s working 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *