• Resolved KissMyLegs

    (@kissmylegs)


    Do you have any shortcodes available to display Regular and Sales prices per user role? I am currently still using another RBP plugin and I do have access to shortcode to display the price of an item (variation too) for each user role I have defined. One certain user I have can see the prices of an item (in single page) for all users.

    Here is the shortcode/php I am using:

    $SR = do_shortcode(‘[wc_rbp id=”‘ . $product->get_id() . ‘” role=”subscriber” price=”regular_price”]’);

    I have several other shortcodes as well.
    The output is something like this:

    Regular Selling
    Stylist price: CAD$12.75 CAD$12.75
    Customer price: CAD$20.99 CAD$15.99
    Boutique price: CAD$10.75 CAD$10.75

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter KissMyLegs

    (@kissmylegs)

    I should add, I am just trying to display all prices for a product/role on a single product page for a super-user (my wife lol). She wants the ability to see what a customer pays, what a stylist (subscriber) pays and what a boutique pays when she is in each single product page. I am not trying to do anything funky with displaying the product price (at top of single product page, etc.)….if that makes sense?

    Plugin Author meowcrew

    (@meowcrew)

    Hello there,

    I understand what you mean here and that definitely makes sense. But unfortunately, we don’t have shortcodes to display all the role-based values.

    We will add an idea to our backlog and will consider it for future updates.

    Thread Starter KissMyLegs

    (@kissmylegs)

    Thank you for getting back to me in a timely manner. Much appreciated.

    Thread Starter KissMyLegs

    (@kissmylegs)

    I have one other odd thing happening with your plugin. It’s happening to a few products that have variations. In the Shop Page as well as Single Product Page, the variation price shown is for a non-logged user. I’m however logged in as a Subscriber. The price for each variation (when clicked) is correct, just not the price shown in the other places (mentioned above)

    So..

    Single Product Page

    $15.99 – $23.99
    My Variation Product



    click Small and price shown on website (by add to cart button) is accurate at $5.99
    click Large and price shown on website (by add to cart button) is accurate at $9.99

    I haven’t seen any simple products affected.

    Any thoughts?

    I have gone and set the default price (that is the $15.99 and $23.99 and then set up a few roles (one of them is subscriber).

    Thread Starter KissMyLegs

    (@kissmylegs)

    I found the issue. Not your plugin!!!!

    Plugin Author meowcrew

    (@meowcrew)

    Well, great to hear it’s not our plugin fault ??

    We’ll close this ticket, but in case you find any more issues or questions, don’t hesitate to let us know.

    Cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Any shortcodes available?’ is closed to new replies.