Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Woo Discount: Compatible for WC Role Based Price By Varun Sridharan
function wc_rbp_product_get_price_for_woo_discount_compatible($wcrbp_price, $product, $role_based_pricing_object){
$changes = $product->get_changes();
$wcrbp_price = $changes['price'];
return $wcrbp_price;
add_filter('wc_rbp_product_get_price', 'wc_rbp_product_get_price_for_woo_discount_compatible', 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.