• I use your plugin in combination with b2b-market ( * Plugin Name: B2B Market
    * Plugin URI: https://marketpress.de/shop/plugins/b2b-market/ ).

    When using product bundles as exclusive Products for B2B-Customers, the calculation of totals in the cart is failing. (It takes the bundle price and adds all included products subtotals)

    I think this is because both plugins use add_action(?woocommerce_before_calculate_totals‘).

    After setting your Calculation function to higher priority of 99, everything seems to work fine, but I haven’t had the time to test this extensively.
    Can you please investigate this issue and confirm this fix works? B2B-Market is using priority of 20. So Maybe in a next update of your plugin you could raise priority to 25?

    Because I want to avoid using this (currently used) fix in functions.php of the template:

    if ( class_exists( ‘WPcleverWoosb’ ) ) {
    add_action( ‘woocommerce_before_calculate_totals’, array(
    new WPcleverWoosb,
    ‘woosb_before_calculate_totals’
    ), 99, 1 );
    }

    Also it would be nice if function woosb_before_calculate_totals could be defined as public static function, so I wouldn’t have to re-instantiate WPcleverWoosb-Class.

    Thanks in advance

    • This topic was modified 4 years, 9 months ago by ohrendruck.
Viewing 1 replies (of 1 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi @ohrendruck ,
    Thank you for using our plugin. Your issue is a technical one, so this requires our developers to look into your site to check the behavior of our plugin, so please contact our developers via this page to have them checked and fixed it for you.
    Since this is a public forum, we can’t help you adjust the codes here. Kindly contact us via Ticksy forum.
    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘calculation of totals in the cart is failing’ is closed to new replies.