# Fix line item subtotal calculation (when using Fee)

```php
add_action('woocommerce_after_calculate_totals', function (){
	if (!WC()->cart->is_empty()){
	 	\Wdr\App\Router::$manage_discount->applyCartProductDiscount(WC()->cart);
	}
},100);
```
