So i'm writing an addon plug-in for RBP but when i try to use a shortcode to retrieve the selling price of a specific role it allways returns the base selling price.
Never the user specific price.
This is the troubling code:
$products_Prices_B_all = floatval(do_shortcode("[wc_rbp id=".$cart_item['product_id']." role='administrator' price='product_selling_price']" ));
So i'm writing an addon plug-in for RBP but when i try to use a shortcode to retrieve the selling price of a specific role it allways returns the base selling price. Never the user specific price. This is the troubling code:
$products_Prices_B_all = floatval(do_shortcode("[wc_rbp id=".$cart_item['product_id']." role='administrator' price='product_selling_price']" ));
Thanks for helping out!