How can I show an empty WooCommerce cart? [closed]

global $woocommerce;
$count = $woocommerce->cart->cart_contents_count;

This should be the variable you’d want to work with. Try var_dump on this to display its value.

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