Okay
  Public Ticket #1789119
Show other prices
Closed

Comments

  • Enrique started the conversation

    Hi, I have created a user role called Premium.

    The Premium users have a lower price than customers.

    I need to show the standard customers prices and next to it, the special price for this user role price.

    How can I do it?

    If it can't be done I would need a refund because it's a must have that I need for the project.

    Thanks

  •  27
    Varun replied

    Hi There.

    This can be done if you are able to do some ground work.


    Get Product’s Regular Price With Custom User Role

    [wc_rbp id='99' role='administrator' price='regular_price']
    

    Get Product’s Selling Price Based On Logged In User

    [wc_rbp id='99' role='current' price='selling_price']
    

    Get Product’s Base Regular Price

    [wc_rbp id='99' price='product_regular_price']
    

    Get Product’s Base Selling Price

    [wc_rbp id='99' price='product_selling_price']
    

    Get Product’s Regular Price With Custom User Role

    [wc_rbp id='99' role='administrator' price='regular_price']
    

    Get Product’s Selling Price Based On Logged In User

    [wc_rbp id='99' role='current' price='selling_price']
    

    Get Product’s Base Regular Price

    [wc_rbp id='99' price='product_regular_price']
    

    Get Product’s Base Selling Price

    [wc_rbp id='99' price='product_selling_price']
    

    Shortcode Variables Explained

    • id=99 you need to replace the 99 with your simple/variable product id
    • role=administrator you need replace administrator 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

    Since this is a customization work. i can't help you more on this.
    also refund is not possible as the plugin works as it should be.