Best way to declare product variables in woocommerce theme development?

Is there a particular reason why you would like to “store” them? If not, you can simply do it like this:

<h3><?php echo esc_html( $product->get_name() ); ?></h3>

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