How to get the Woocoomerce subtotal value without tax in the hardcode? [closed]

$order->get_subtotal() should get you totals before taxes, coupons and shipping. It’s a method of WC_Abstract_Order which is extended by the actual WC_Order class.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)