| @@ -20,9 +20,9 @@ | ||
| 20 | 20 | function disco_set_cart_item_price_test( $cart ) { |
| 21 | 21 | return ( new Disco )->get_cart_items_discount( $cart ); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - add_action( 'woocommerce_before_calculate_totals', 'disco_set_cart_item_price_test', 1, 1 ); | |
| 24 | + add_action( 'woocommerce_cart_calculate_fees', 'disco_set_cart_item_price_test', 1, 1 ); | |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | if ( ! function_exists( 'disco_cart_item_price_html' ) ) { |
| 28 | 28 | |