varunsridharan / woocommerce-role-based-price

WooCommerce Role Based Price Plugin
https://codecanyon.net/item/woocommerce-role-based-pricing-pro/14120734
GNU General Public License v3.0
49 stars 23 forks source link

Issue with do_shortcode #116

Open andresvlaeminck opened 4 years ago

andresvlaeminck commented 4 years ago

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!