This topic has 3 replies, 2 voices, and was last updated 3 hours, 32 minutes ago ago by Snapp
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 );
}
});
Dear @Snapp,
We hope this message finds you well.
Could you kindly provide more details regarding what you are aiming to achieve? If possible, sharing screenshots or videos would be greatly appreciated to help us better understand your requirements.
Additionally, could you confirm if your intention is to replace the default prices of the WooCommerce plugin with the prices from the B2B Marketpress Plugin?
We look forward to your response.
Best regards,
The 8Theme Team
Of course, here you see on first screen a product with right customer rollbased price (20%). If we put it on our compare list, somtimes the price is displayed correctly, sometimes not… on the screen-customer-compare.png the first price is right, second product has the wrong price. Some on wishlist.
And yes, we would like to display the price that customer see on single product.
Hope we are not confusing you…
You must be logged in to reply to this topic.Log in/Sign up