Single product page doesn’t display price

If you have the product’s ID you can use that to create a product object:

$product= wc_get_product( $product_id );

Then from the object you can run any of WooCommerce’s product methods.

$product->get_regular_price();
$product->get_sale_price();
$product->get_price();

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