calculation of totals in the cart is failing
-
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
- The topic ‘calculation of totals in the cart is failing’ is closed to new replies.