Rollbased Prices on Whish- and Compare-List

This topic has 3 replies, 2 voices, and was last updated 3 hours, 32 minutes ago ago by Snapp

  • Avatar: Snapp
    Snapp
    Participant
    December 12, 2024 at 08:47

    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 );
    	}
    });
    Content is visible for topic creator and
    support staff only.
    2 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    December 12, 2024 at 10:43

    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

    Avatar: Snapp
    Snapp
    Participant
    December 12, 2024 at 12:02

    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…

    Content is visible for topic creator and
    support staff only.
    Files is visible for topic creator and
    support staff only.
  • Viewing 3 results - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.