Hi, we would like to use your “onboard” wish- and compare-list. We are using the B2B Marketpress Plugin and display rollbased prices on the shop… We have this code in our function.php but it seems to work unfortunately not in the right way. Could you please have a look and help us with some coding or smart solution?
Regards, snap
////B2B Preisberechnung
add_action( 'init', function() {
if ( class_exists( 'BM_Price' ) ) {
$prices = BM_Price::get_instance();
remove_filter( 'woocommerce_product_get_price', array( $prices, 'set_price' ), $prices::$set_price_prio );
add_filter( 'woocommerce_product_get_price', array( $prices, 'set_price' ), 99, 2 );
}
});